From 373a543044190a66bb8806a1faec0c6bc2a41c4a Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 23 Jun 2008 00:57:01 +0000 Subject: [PATCH] this cheat window was acting weird --- src/drivers/win/cheat.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/drivers/win/cheat.cpp b/src/drivers/win/cheat.cpp index ad4aafc6..4e50b3eb 100644 --- a/src/drivers/win/cheat.cpp +++ b/src/drivers/win/cheat.cpp @@ -518,16 +518,11 @@ void ConfigCheats(HWND hParent) { if (!CheatWindow) { selcheat=-1; CheatWindow=1; - if (CheatStyle) hCheat = CreateDialog(fceu_hInstance,"CHEATCONSOLE",NULL,CheatConsoleCallB); + if (CheatStyle) pwindow = hCheat = CreateDialog(fceu_hInstance,"CHEATCONSOLE",NULL,CheatConsoleCallB); else DialogBox(fceu_hInstance,"CHEATCONSOLE",hParent,CheatConsoleCallB); } else SetFocus(hCheat); - - if(!pwindow) - pwindow=CreateDialog(fceu_hInstance,"CHEATCONSOLE",NULL,CheatConsoleCallB); - else - SetFocus(pwindow); } void UpdateCheatList()