cleanup a debug statement
show flag should be SW_SHOWNA, not SW_SHOWNOACTIVATE according to docs git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1611 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
123c48b2ae
commit
60e65375c1
@ -1768,7 +1768,7 @@ void fgPlatformProcessWork(SFG_Window *window)
|
|||||||
break;
|
break;
|
||||||
case DesireNormalState:
|
case DesireNormalState:
|
||||||
if (win->IsMenu)
|
if (win->IsMenu)
|
||||||
cmdShow = SW_SHOWNOACTIVATE; /* Just show, don't activate if its a menu */
|
cmdShow = SW_SHOWNA; /* Just show, don't activate if its a menu */
|
||||||
else
|
else
|
||||||
cmdShow = SW_SHOW;
|
cmdShow = SW_SHOW;
|
||||||
break;
|
break;
|
||||||
|
@ -48,10 +48,7 @@ void fgPlatformCheckMenuDeactivate()
|
|||||||
menu = fgGetActiveMenu();
|
menu = fgGetActiveMenu();
|
||||||
|
|
||||||
if ( menu )
|
if ( menu )
|
||||||
{
|
|
||||||
printf("focus menu close\n");
|
|
||||||
fgDeactivateMenu(menu->ParentWindow);
|
fgDeactivateMenu(menu->ParentWindow);
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user