Changing a bunch of platform-specific "fgDisplay" fields to "fgDisplay.pDisplay"...
[freeglut] / src / Common / freeglut_state.c
index 6630b6d..8962df3 100644 (file)
@@ -65,7 +65,7 @@ static int fghGetConfig( int attribute )
   int result;  /*  Not checked  */\r
 \r
   if( fgStructure.CurrentWindow )\r
-      result = glXGetFBConfigAttrib( fgDisplay.Display,\r
+      result = glXGetFBConfigAttrib( fgDisplay.pDisplay.Display,\r
                                      *(fgStructure.CurrentWindow->Window.pContext.FBConfig),\r
                                      attribute,\r
                                      &returnValue );\r
@@ -128,7 +128,7 @@ int fgPlatformGlutGet ( GLenum eWhat )
                 fgStructure.CurrentWindow->Window.pContext.FBConfig;\r
 \r
           XVisualInfo * visualInfo =\r
-                glXGetVisualFromFBConfig( fgDisplay.Display, *fbconfig );\r
+                glXGetVisualFromFBConfig( fgDisplay.pDisplay.Display, *fbconfig );\r
 \r
           const int result = visualInfo->visual->map_entries;\r
 \r
@@ -153,7 +153,7 @@ int fgPlatformGlutGet ( GLenum eWhat )
             return 0;\r
 \r
         XTranslateCoordinates(\r
-            fgDisplay.Display,\r
+            fgDisplay.pDisplay.Display,\r
             fgStructure.CurrentWindow->Window.Handle,\r
             fgDisplay.RootWindow,\r
             0, 0, &x, &y, &w);\r
@@ -167,7 +167,7 @@ int fgPlatformGlutGet ( GLenum eWhat )
         if ( w == 0 )\r
             return 0;\r
         XTranslateCoordinates(\r
-            fgDisplay.Display,\r
+            fgDisplay.pDisplay.Display,\r
             fgStructure.CurrentWindow->Window.Handle,\r
             w, 0, 0, &x, &y, &w);\r
 \r
@@ -186,7 +186,7 @@ int fgPlatformGlutGet ( GLenum eWhat )
         if( fgStructure.CurrentWindow == NULL )\r
             return 0;\r
         XGetWindowAttributes(\r
-            fgDisplay.Display,\r
+            fgDisplay.pDisplay.Display,\r
             fgStructure.CurrentWindow->Window.Handle,\r
             &winAttributes\r
         );\r
@@ -259,7 +259,7 @@ int fgPlatformGlutDeviceGet ( GLenum eWhat )
          */\r
         {\r
             unsigned char map;\r
-            int nbuttons = XGetPointerMapping(fgDisplay.Display, &map,0);\r
+            int nbuttons = XGetPointerMapping(fgDisplay.pDisplay.Display, &map,0);\r
             return nbuttons;\r
         }\r
 \r
@@ -633,8 +633,8 @@ int * FGAPIENTRY glutGetModeValues(GLenum eWhat, int * size)
           break;\r
         }\r
 \r
-      fbconfigArray = glXChooseFBConfig(fgDisplay.Display,\r
-                                        fgDisplay.Screen,\r
+      fbconfigArray = glXChooseFBConfig(fgDisplay.pDisplay.Display,\r
+                                        fgDisplay.pDisplay.Screen,\r
                                         attributes,\r
                                         &fbconfigArraySize);\r
 \r
@@ -652,7 +652,7 @@ int * FGAPIENTRY glutGetModeValues(GLenum eWhat, int * size)
             {\r
               int value;\r
 \r
-              result = glXGetFBConfigAttrib(fgDisplay.Display,\r
+              result = glXGetFBConfigAttrib(fgDisplay.pDisplay.Display,\r
                                             fbconfigArray[i],\r
                                             attribute_name,\r
                                             &value);\r