diff --git a/src/win32/Logging.cpp b/src/win32/Logging.cpp index 7d8add3e..d1b067f3 100644 --- a/src/win32/Logging.cpp +++ b/src/win32/Logging.cpp @@ -268,6 +268,14 @@ void toolsLogging() } } +void toolsLoggingClose() +{ + if(Logging::instance != NULL) { + Logging::instance->DestroyWindow(); + Logging::instance = NULL; + } +} + void toolsLog(const char *s) { CString str; diff --git a/src/win32/Logging.h b/src/win32/Logging.h index 00ddadaa..7e6288ee 100644 --- a/src/win32/Logging.h +++ b/src/win32/Logging.h @@ -97,6 +97,7 @@ class Logging : public ResizeDlg // Microsoft Visual C++ will insert additional declarations immediately before the previous line. void toolsLogging(); +void toolsLoggingClose(); void toolsLog(const char *s); void toolsClearLog(); diff --git a/src/win32/MainWndFile.cpp b/src/win32/MainWndFile.cpp index 2802b49f..3285ca79 100644 --- a/src/win32/MainWndFile.cpp +++ b/src/win32/MainWndFile.cpp @@ -27,6 +27,7 @@ #include "RomInfo.h" #include "Reg.h" #include "WinResUtil.h" +#include "Logging.h" #include "../GBA.h" #include "../Globals.h" @@ -689,10 +690,12 @@ void MainWnd::OnUpdateFileRominformation(CCmdUI* pCmdUI) pCmdUI->Enable(emulating); } +//OnFileToggleFullscreen void MainWnd::OnFileTogglemenu() { if( theApp.videoOption <= VIDEO_4X ) { // switch to full screen + toolsLoggingClose(); // close log dialog theApp.updateWindowSize( theApp.lastFullscreen ); } else { // switch to windowed mode