X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2FCommon%2Ffreeglut_state.c;h=06681eb938a7b1b2510cba4c55417d42248a2174;hb=50dea63211495f1d8302c25eb1acae51347d1502;hp=6630b6d8101b36ae668610cf0fefd9f3e9ba4009;hpb=9486b7d6a3bf0d00cc00ab98380e99810250aa84;p=freeglut diff --git a/src/Common/freeglut_state.c b/src/Common/freeglut_state.c index 6630b6d..06681eb 100644 --- a/src/Common/freeglut_state.c +++ b/src/Common/freeglut_state.c @@ -65,7 +65,7 @@ static int fghGetConfig( int attribute ) int result; /* Not checked */ if( fgStructure.CurrentWindow ) - result = glXGetFBConfigAttrib( fgDisplay.Display, + result = glXGetFBConfigAttrib( fgDisplay.pDisplay.Display, *(fgStructure.CurrentWindow->Window.pContext.FBConfig), attribute, &returnValue ); @@ -128,7 +128,7 @@ int fgPlatformGlutGet ( GLenum eWhat ) fgStructure.CurrentWindow->Window.pContext.FBConfig; XVisualInfo * visualInfo = - glXGetVisualFromFBConfig( fgDisplay.Display, *fbconfig ); + glXGetVisualFromFBConfig( fgDisplay.pDisplay.Display, *fbconfig ); const int result = visualInfo->visual->map_entries; @@ -153,9 +153,9 @@ int fgPlatformGlutGet ( GLenum eWhat ) return 0; XTranslateCoordinates( - fgDisplay.Display, + fgDisplay.pDisplay.Display, fgStructure.CurrentWindow->Window.Handle, - fgDisplay.RootWindow, + fgDisplay.pDisplay.RootWindow, 0, 0, &x, &y, &w); switch ( eWhat ) @@ -167,7 +167,7 @@ int fgPlatformGlutGet ( GLenum eWhat ) if ( w == 0 ) return 0; XTranslateCoordinates( - fgDisplay.Display, + fgDisplay.pDisplay.Display, fgStructure.CurrentWindow->Window.Handle, w, 0, 0, &x, &y, &w); @@ -186,7 +186,7 @@ int fgPlatformGlutGet ( GLenum eWhat ) if( fgStructure.CurrentWindow == NULL ) return 0; XGetWindowAttributes( - fgDisplay.Display, + fgDisplay.pDisplay.Display, fgStructure.CurrentWindow->Window.Handle, &winAttributes ); @@ -259,7 +259,7 @@ int fgPlatformGlutDeviceGet ( GLenum eWhat ) */ { unsigned char map; - int nbuttons = XGetPointerMapping(fgDisplay.Display, &map,0); + int nbuttons = XGetPointerMapping(fgDisplay.pDisplay.Display, &map,0); return nbuttons; } @@ -633,8 +633,8 @@ int * FGAPIENTRY glutGetModeValues(GLenum eWhat, int * size) break; } - fbconfigArray = glXChooseFBConfig(fgDisplay.Display, - fgDisplay.Screen, + fbconfigArray = glXChooseFBConfig(fgDisplay.pDisplay.Display, + fgDisplay.pDisplay.Screen, attributes, &fbconfigArraySize); @@ -652,7 +652,7 @@ int * FGAPIENTRY glutGetModeValues(GLenum eWhat, int * size) { int value; - result = glXGetFBConfigAttrib(fgDisplay.Display, + result = glXGetFBConfigAttrib(fgDisplay.pDisplay.Display, fbconfigArray[i], attribute_name, &value);