From c6b8db239dd9d07a4959c912746bc41a85c99507 Mon Sep 17 00:00:00 2001 From: mudlord Date: Sun, 9 Mar 2008 08:43:30 +0000 Subject: [PATCH] Ugh... Someone (not me) was spawning a window and wasn't killing it afterwards. It caused a issue to do with fullscreen-window mode transition. Removed since I checked out and it made no difference at all to functionality, yet it caused this issue. git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@453 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/win32/OpenGL.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/win32/OpenGL.cpp b/src/win32/OpenGL.cpp index 4cbb18d7..3d9c6e61 100644 --- a/src/win32/OpenGL.cpp +++ b/src/win32/OpenGL.cpp @@ -315,23 +315,7 @@ bool OpenGLDisplay::initialize() winSizeY = theApp.fsHeight; } - // Create a window - MainWnd *pWnd = new MainWnd; - theApp.m_pMainWnd = pWnd; - - pWnd->CreateEx( - styleEx, - theApp.wndClass, - "VisualBoyAdvance", - style, - x,y,winSizeX,winSizeY, - NULL, - 0 ); - - if (!(HWND)*pWnd) { - winlog("Error creating Window %08x\n", GetLastError()); - return FALSE; - } + theApp.updateMenuBar();