X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_main.c;h=1b75e7d03c1783b0e919fbb570a323c7e6e1e9a3;hb=9e31ffd2f4fe1e5093876e56a0da3db3f66acdfb;hp=1a66e1f5489da794009eb16a91b24b1110a808c1;hpb=45260a6156a412f1938a5cca08d66b9841dab6f7;p=freeglut diff --git a/src/freeglut_main.c b/src/freeglut_main.c index 1a66e1f..1b75e7d 100644 --- a/src/freeglut_main.c +++ b/src/freeglut_main.c @@ -1392,6 +1392,10 @@ void FGAPIENTRY glutMainLoopEvent( void ) case ReparentNotify: break; /* XXX Should disable this event */ + /* Not handled */ + case GravityNotify: + break; + default: fgWarning ("Unknown X event type: %d\n", event.type); break; @@ -2088,7 +2092,7 @@ LRESULT CALLBACK fgWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam, GetKeyboardState( state ); - if( ToAscii( wParam, 0, state, code, 0 ) == 1 ) + if( ToAscii( (UINT)wParam, 0, state, code, 0 ) == 1 ) wParam=code[ 0 ]; INVOKE_WCB( *window, KeyboardUp, @@ -2236,6 +2240,17 @@ LRESULT CALLBACK fgWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam, case SC_HOTKEY : break ; +#if(WINVER >= 0x0400) + case SC_DEFAULT : + break ; + + case SC_MONITORPOWER : + break ; + + case SC_CONTEXTHELP : + break ; +#endif /* WINVER >= 0x0400 */ + default: #if _DEBUG fgWarning( "Unknown wParam type 0x%x", wParam );