summaryrefslogtreecommitdiff
path: root/src/gui/windowmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-25 21:47:57 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-25 21:47:57 +0300
commit1f4410ab9ac4064ff0cfb0fd31b4e942bee82277 (patch)
tree4b1089f8ba8b33b26fe74911d31ed2ae0f933824 /src/gui/windowmenu.cpp
parentbea613d8ba11a64ccf36a01735f2839894ca9476 (diff)
downloadplus-1f4410ab9ac4064ff0cfb0fd31b4e942bee82277.tar.gz
plus-1f4410ab9ac4064ff0cfb0fd31b4e942bee82277.tar.bz2
plus-1f4410ab9ac4064ff0cfb0fd31b4e942bee82277.tar.xz
plus-1f4410ab9ac4064ff0cfb0fd31b4e942bee82277.zip
Add method safeDrawChildren for safe OpenGL renderer.
Diffstat (limited to 'src/gui/windowmenu.cpp')
-rw-r--r--src/gui/windowmenu.cpp9
1 files changed, 9 insertions, 0 deletions
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")