Moved unused member variables to #if 0 blocks.

Added initiliazer
This commit is contained in:
Robert Osfield
2016-07-01 09:52:35 +01:00
parent 2842adeb98
commit ca77f5223e
2 changed files with 4 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ RenderSurface::RenderSurface( void )
_drawableType = DrawableType_Window;
_hostname = "";
_displayNum = 0;
// _screen = 0;
_screen = 0;
_mayFullScreen = true;
_isFullScreen = true;

View File

@@ -451,7 +451,6 @@ class RenderSurface : public osg::Referenced
std::vector<int> &getPBufferUserAttributes();
private :
unsigned int _refreshRate;
#ifdef _X11_IMPLEMENTATION
int (*__glxGetRefreshRateSGI)(unsigned int *);
int (*__glxGetVideoSyncSGI)(unsigned int *);
@@ -467,6 +466,7 @@ class RenderSurface : public osg::Referenced
void _setCursor(Cursor);
void _setCursorToDefault();
void _positionPointer(int x, int y);
unsigned int _refreshRate;
void _resizeWindow();
#endif
bool _overrideRedirectFlag;
@@ -494,9 +494,9 @@ class RenderSurface : public osg::Referenced
Display * _dpy;
Window _win;
Window _parent;
unsigned int _parentWindowHeight;
#endif
RenderSurface *_readDrawableRenderSurface;
unsigned int _parentWindowHeight;
bool _realized;
osg::ref_ptr< VisualChooser > _visualChooser;
#if 0
@@ -507,11 +507,11 @@ class RenderSurface : public osg::Referenced
Cursor _currentCursor;
Cursor _nullCursor;
Cursor _defaultCursor;
unsigned int _frameCount;
#endif
bool _decorations;
bool _useCursorFlag;
std::string _windowName;
unsigned int _frameCount;
bool _mayFullScreen;
bool _isFullScreen;
bool _bindInputRectangleToWindowSize;