X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fmswin%2Ffg_menu_mswin.c;fp=src%2Fmswin%2Ffg_menu_mswin.c;h=3d8369378a87d3e8e96333800def0ed244c4687e;hb=637e1260edb9068591665330c32407549ca36535;hp=0d6a599d1c21b235fb3ecc89069e910fa58e1037;hpb=892b49cef181f7bc37e24f56fc7143f28abe2056;p=freeglut diff --git a/src/mswin/fg_menu_mswin.c b/src/mswin/fg_menu_mswin.c index 0d6a599..3d83693 100644 --- a/src/mswin/fg_menu_mswin.c +++ b/src/mswin/fg_menu_mswin.c @@ -29,7 +29,7 @@ #include #include "../fg_internal.h" -extern RECT fghGetClientArea( const SFG_Window *window, BOOL wantPosOutside ); +extern void fghGetClientArea( RECT *clientRect, const SFG_Window *window, BOOL wantPosOutside ); GLvoid fgPlatformGetGameModeVMaxExtent( SFG_Window* window, int* x, int* y ) @@ -69,11 +69,12 @@ void fgPlatformCheckMenuDeactivate() else { /* Check if focus lost because non-client area of - * window was pressed (pressing on client area is - * handled in fgCheckActiveMenu) - */ + * window was pressed (pressing on client area is + * handled in fgCheckActiveMenu) + */ POINT mouse_pos; - RECT clientArea = fghGetClientArea(menu->ParentWindow, GL_FALSE); + RECT clientArea; + fghGetClientArea(&clientArea,menu->ParentWindow, GL_FALSE); GetCursorPos(&mouse_pos); if ( !PtInRect( &clientArea, mouse_pos ) ) fgDeactivateMenu(menu->ParentWindow);