extern LRESULT CALLBACK fgPlatformWindowProc( HWND hWnd, UINT uMsg,
WPARAM wParam, LPARAM lParam );
+extern void fgPlatformInitSystemTime();
/*
* Each of the windows should have its own device context, and we
* want redraw events during Vertical and Horizontal Resizes by
* the user.
- *
- * XXX Old code had "| CS_DBCLCKS" commented out. Plans for the
- * XXX future? Dead-end idea?
*/
wc.lpfnWndProc = fgPlatformWindowProc;
wc.cbClsExtra = 0;
}
/* Set the timer granularity to 1 ms */
timeBeginPeriod ( 1 );
+ /* Init setup to deal with timer wrap, can't query system time before this is done */
+ fgPlatformInitSystemTime();
+ /* Get start time */
+ fgState.Time = fgSystemTime();
fgState.Initialised = GL_TRUE;