X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fmswin%2Ffreeglut_init_mswin.c;fp=src%2Fmswin%2Ffreeglut_init_mswin.c;h=1777ebd4d881b22edf5dcdd4884bbb8fb8ffd554;hb=3e5e3f51c272a95dc877b781281880061690b935;hp=ff476fd849c849d9e70cf559d187bd1bad9ad7ac;hpb=83cbc20173cda65aeef88ce4a1da6a08c1fd010f;p=freeglut diff --git a/src/mswin/freeglut_init_mswin.c b/src/mswin/freeglut_init_mswin.c index ff476fd..1777ebd 100644 --- a/src/mswin/freeglut_init_mswin.c +++ b/src/mswin/freeglut_init_mswin.c @@ -32,7 +32,7 @@ /* * A call to this function should initialize all the display stuff... */ -void fghInitialize( const char* displayName ) +void fgPlatformInitialize( const char* displayName ) { WNDCLASS wc; ATOM atom; @@ -54,7 +54,7 @@ void fghInitialize( const char* displayName ) * XXX Old code had "| CS_DBCLCKS" commented out. Plans for the * XXX future? Dead-end idea? */ - wc.lpfnWndProc = fgWindowProc; + wc.lpfnWndProc = fgPlatformWindowProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = fgDisplay.Instance; @@ -75,7 +75,7 @@ void fghInitialize( const char* displayName ) /* Register the window class */ atom = RegisterClass( &wc ); - FREEGLUT_INTERNAL_ERROR_EXIT ( atom, "Window Class Not Registered", "fghInitialize" ); + FREEGLUT_INTERNAL_ERROR_EXIT ( atom, "Window Class Not Registered", "fgPlatformInitialize" ); } /* The screen dimensions can be obtained via GetSystemMetrics() calls */ @@ -104,7 +104,7 @@ void fghInitialize( const char* displayName ) DeleteDC(context); } else - fgWarning("fghInitialize: " + fgWarning("fgPlatformInitialize: " "CreateDC failed, Screen size info may be incorrect\n" "This is quite likely caused by a bad '-display' parameter"); @@ -131,7 +131,7 @@ void fghInitialize( const char* displayName ) /* Platform-Specific Deinitialization Functions: */ extern void fghCloseInputDevices ( void ); -void fghDeinitialiseInputDevices ( void ) +void fgPlatformDeinitialiseInputDevices ( void ) { #if !defined(_WIN32_WCE) fghCloseInputDevices (); @@ -140,7 +140,7 @@ void fghDeinitialiseInputDevices ( void ) fgState.InputDevsInitialised = GL_FALSE; } -void fghCloseDisplay ( void ) +void fgPlatformCloseDisplay ( void ) { if( fgDisplay.DisplayName ) {