Splitting the X11-specific "freeglut_window.c" code into its own file
[freeglut] / src / mswin / freeglut_main_mswin.c
index b04e9e0..8ea57b0 100644 (file)
@@ -108,6 +108,16 @@ void fgPlatformDisplayWindow ( SFG_Window *window )
 }\r
 \r
 \r
+unsigned long fgPlatformSystemTime ( void )\r
+{\r
+#if defined(_WIN32_WCE)\r
+    return GetTickCount();\r
+#else\r
+    return timeGetTime();\r
+#endif\r
+}\r
+\r
+\r
 void fgPlatformSleepForEvents( long msec )\r
 {\r
     MsgWaitForMultipleObjects( 0, NULL, FALSE, msec, QS_ALLINPUT );\r
@@ -436,6 +446,8 @@ LRESULT CALLBACK fgPlatformWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam,
 /*        printf("WM_SETFOCUS: %p\n", window ); */\r
         lRet = DefWindowProc( hWnd, uMsg, wParam, lParam );\r
         INVOKE_WCB( *window, Entry, ( GLUT_ENTERED ) );\r
+\r
+               UpdateWindow ( hWnd );\r
         break;\r
 \r
     case WM_KILLFOCUS:\r