From 1f4410ab9ac4064ff0cfb0fd31b4e942bee82277 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 May 2015 21:47:57 +0300 Subject: Add method safeDrawChildren for safe OpenGL renderer. --- src/gui/windowmenu.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/gui/windowmenu.cpp') diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp index 4cf0a6b2b..1e1f236df 100644 --- a/src/gui/windowmenu.cpp +++ b/src/gui/windowmenu.cpp @@ -426,6 +426,15 @@ void WindowMenu::drawChildren(Graphics* graphics) } } +void WindowMenu::safeDrawChildren(Graphics* graphics) +{ + if (mHaveMouse || !mAutoHide || (mAutoHide == 1 + && mainGraphics && (mSmallWindow || mainGraphics->mWidth > 800))) + { + Container::safeDrawChildren(graphics); + } +} + void WindowMenu::optionChanged(const std::string &name) { if (name == "autohideButtons") -- cgit v1.2.3-60-g2f50