From 814bb8a2509c767bf0a58b26f106b9e90254d2ff Mon Sep 17 00:00:00 2001 From: Diederick Niehorster Date: Sat, 6 Apr 2013 10:20:42 +0000 Subject: [PATCH] cleanup a debug statement show flag should be SW_SHOWNA, not SW_SHOWNOACTIVATE according to docs git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1611 7f0cb862-5218-0410-a997-914c9d46530a --- src/mswin/fg_main_mswin.c | 2 +- src/mswin/fg_menu_mswin.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mswin/fg_main_mswin.c b/src/mswin/fg_main_mswin.c index 3128c2e..4b34089 100644 --- a/src/mswin/fg_main_mswin.c +++ b/src/mswin/fg_main_mswin.c @@ -1768,7 +1768,7 @@ void fgPlatformProcessWork(SFG_Window *window) break; case DesireNormalState: 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 cmdShow = SW_SHOW; break; diff --git a/src/mswin/fg_menu_mswin.c b/src/mswin/fg_menu_mswin.c index 9df001e..9c3e952 100644 --- a/src/mswin/fg_menu_mswin.c +++ b/src/mswin/fg_menu_mswin.c @@ -48,10 +48,7 @@ void fgPlatformCheckMenuDeactivate() menu = fgGetActiveMenu(); if ( menu ) - { - printf("focus menu close\n"); fgDeactivateMenu(menu->ParentWindow); - } }; -- 1.7.10.4