From 0a81e741c5be43ba4fe7f1e414557911dd865182 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Wed, 4 Feb 2009 17:48:40 +0000 Subject: [PATCH] build fix git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2113 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/main.cpp | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/main.cpp b/Source/Plugins/Plugin_VideoOGL/Src/main.cpp index 3ad9d89a3c..d0f86c148b 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/main.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/main.cpp @@ -65,26 +65,19 @@ PLUGIN_GLOBALS* globals; CDebugger* m_frame; void DllDebugger(HWND _hParent, bool Show) { - if(m_frame && Show) // if we have created it, let us show it again + if(!m_frame && Show) { - m_frame->DoShow(); - } - else if(!m_frame && Show) - { m_frame = new CDebugger(NULL); m_frame->Show(); } - else if(m_frame && !Show) + else if (m_frame && !Show) { - m_frame->DoHide(); + if(m_frame->Close()) + m_frame = NULL; } } -void DoDllDebugger() -{ - //m_frame = new CDebugger(NULL); - //m_frame->Show(); -} +void DoDllDebugger(){} #else void DllDebugger(HWND _hParent, bool Show) { } void DoDllDebugger() { }