From de82fbe0f900af5e18684ee1b642a785518c58e3 Mon Sep 17 00:00:00 2001 From: Anis Date: Wed, 10 Dec 2014 15:30:36 +0100 Subject: [PATCH] Intel graphics bugfix Explicit calls to hide and show menu bar on editing. That fix the bug on Intel video card in OpenGL mode. --- Engine/source/platformWin32/menus/menuBarWin32.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Engine/source/platformWin32/menus/menuBarWin32.cpp b/Engine/source/platformWin32/menus/menuBarWin32.cpp index aa69b8d3a..90d992b42 100644 --- a/Engine/source/platformWin32/menus/menuBarWin32.cpp +++ b/Engine/source/platformWin32/menus/menuBarWin32.cpp @@ -133,6 +133,7 @@ void MenuBar::attachToCanvas(GuiCanvas *owner, S32 pos) } HWND hWindow = pWindow->getHWND(); + SetMenu(hWindow, hWindowMenu); DrawMenuBar(hWindow); } @@ -165,6 +166,7 @@ void MenuBar::removeFromCanvas() } HWND hWindow = pWindow->getHWND(); + SetMenu(hWindow, NULL); DrawMenuBar(hWindow); mCanvas = NULL;