diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-25 21:47:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-25 21:47:57 +0300 |
commit | 1f4410ab9ac4064ff0cfb0fd31b4e942bee82277 (patch) | |
tree | 4b1089f8ba8b33b26fe74911d31ed2ae0f933824 /src/gui/windowmenu.cpp | |
parent | bea613d8ba11a64ccf36a01735f2839894ca9476 (diff) | |
download | mv-1f4410ab9ac4064ff0cfb0fd31b4e942bee82277.tar.gz mv-1f4410ab9ac4064ff0cfb0fd31b4e942bee82277.tar.bz2 mv-1f4410ab9ac4064ff0cfb0fd31b4e942bee82277.tar.xz mv-1f4410ab9ac4064ff0cfb0fd31b4e942bee82277.zip |
Add method safeDrawChildren for safe OpenGL renderer.
Diffstat (limited to 'src/gui/windowmenu.cpp')
-rw-r--r-- | src/gui/windowmenu.cpp | 9 |
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") |