Forráskód Böngészése

Intel graphics bugfix

Explicit calls to hide and show menu bar on editing.
That fix the bug on Intel video card in OpenGL mode.
Anis 10 éve
szülő
commit
de82fbe0f9

+ 2 - 0
Engine/source/platformWin32/menus/menuBarWin32.cpp

@@ -133,6 +133,7 @@ void MenuBar::attachToCanvas(GuiCanvas *owner, S32 pos)
    }
    }
 
 
    HWND hWindow = pWindow->getHWND();
    HWND hWindow = pWindow->getHWND();
+   SetMenu(hWindow, hWindowMenu);
    DrawMenuBar(hWindow);
    DrawMenuBar(hWindow);
 
 
 }
 }
@@ -165,6 +166,7 @@ void MenuBar::removeFromCanvas()
    }
    }
 
 
    HWND hWindow = pWindow->getHWND();
    HWND hWindow = pWindow->getHWND();
+   SetMenu(hWindow, NULL);
    DrawMenuBar(hWindow);
    DrawMenuBar(hWindow);
 
 
    mCanvas = NULL;
    mCanvas = NULL;