Splitting the X11-specific "freeglut_structure.c" code into its own file
[freeglut] / src / x11 / freeglut_window_x11.c
index cf48711..54dc786 100644 (file)
@@ -86,7 +86,7 @@
  * Chooses a visual basing on the current display mode settings\r
  */\r
 \r
-GLXFBConfig* fgChooseFBConfig( int *numcfgs )\r
+GLXFBConfig* fgPlatformChooseFBConfig( int *numcfgs )\r
 {\r
   GLboolean wantIndexedMode = GL_FALSE;\r
   int attributes[ 100 ];\r
@@ -451,7 +451,7 @@ void fgPlatformOpenWindow( SFG_Window* window, const char* title,
     if( window->IsMenu && ( ! fgStructure.MenuContext ) )\r
         fgState.DisplayMode = GLUT_DOUBLE | GLUT_RGB ;\r
 \r
-    window->Window.pContext.FBConfig = fgChooseFBConfig( &num_FBConfigs );\r
+    window->Window.pContext.FBConfig = fgPlatformChooseFBConfig( &num_FBConfigs );\r
 \r
     if( window->IsMenu && ( ! fgStructure.MenuContext ) )\r
         fgState.DisplayMode = current_DisplayMode ;\r
@@ -459,21 +459,21 @@ void fgPlatformOpenWindow( SFG_Window* window, const char* title,
     if( ! window->Window.pContext.FBConfig )\r
     {\r
         /*\r
-         * The "fgChooseFBConfig" returned a null meaning that the visual\r
+         * The "fgPlatformChooseFBConfig" returned a null meaning that the visual\r
          * context is not available.\r
          * Try a couple of variations to see if they will work.\r
          */\r
         if( !( fgState.DisplayMode & GLUT_DOUBLE ) )\r
         {\r
             fgState.DisplayMode |= GLUT_DOUBLE ;\r
-            window->Window.pContext.FBConfig = fgChooseFBConfig( &num_FBConfigs );\r
+            window->Window.pContext.FBConfig = fgPlatformChooseFBConfig( &num_FBConfigs );\r
             fgState.DisplayMode &= ~GLUT_DOUBLE;\r
         }\r
 \r
         if( fgState.DisplayMode & GLUT_MULTISAMPLE )\r
         {\r
             fgState.DisplayMode &= ~GLUT_MULTISAMPLE ;\r
-            window->Window.pContext.FBConfig = fgChooseFBConfig( &num_FBConfigs );\r
+            window->Window.pContext.FBConfig = fgPlatformChooseFBConfig( &num_FBConfigs );\r
             fgState.DisplayMode |= GLUT_MULTISAMPLE;\r
         }\r
     }\r