Adding the platform-specific includes to "freeglut_internal.h" in preparation for...
[freeglut] / src / Common / freeglut_internal.h
index cb527ff..87e05f1 100644 (file)
@@ -210,6 +210,16 @@ LONG WINAPI ChangeDisplaySettingsExW(LPCWSTR,LPDEVMODEW,HWND,DWORD,LPVOID);
 \r
 #define INVALID_MODIFIERS 0xffffffff\r
 \r
+\r
+\r
+/* Platform-specific includes */\r
+#if TARGET_HOST_POSIX_X11\r
+#endif\r
+#if TARGET_HOST_MS_WINDOWS\r
+#include "../mswin/freeglut_internal_mswin.h"\r
+#endif\r
+\r
+\r
 /* -- GLOBAL TYPE DEFINITIONS ---------------------------------------------- */\r
 \r
 /* Freeglut callbacks type definitions */\r
@@ -918,19 +928,6 @@ void fgEnumWindows( FGCBenumerator enumCallback, SFG_Enumerator* enumerator );
 void fgEnumSubWindows( SFG_Window* window, FGCBenumerator enumCallback,\r
                        SFG_Enumerator* enumerator );\r
 \r
-#if TARGET_HOST_MS_WINDOWS\r
-/* \r
- * Helper functions for getting client area from the window rect\r
- * and the window rect from the client area given the style of the window\r
- * (or a valid window pointer from which the style can be queried).\r
- */\r
-void fghComputeWindowRectFromClientArea_UseStyle   ( const DWORD windowStyle , RECT *clientRect, BOOL posIsOutside );\r
-void fghComputeWindowRectFromClientArea_QueryWindow( const SFG_Window *window, RECT *clientRect, BOOL posIsOutside );\r
-void fghComputeClientAreaFromWindowRect            ( const SFG_Window *window, RECT *windowRect, BOOL wantPosOutside );\r
-RECT fghGetClientArea                              ( const SFG_Window *window,                   BOOL wantPosOutside );\r
-void fghGetBorderWidth(const DWORD windowStyle, int* xBorderWidth, int* yBorderWidth);\r
-#endif\r
-\r
 /*\r
  * fgWindowByHandle returns a (SFG_Window *) value pointing to the\r
  * first window in the queue matching the specified window handle.\r