diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-25 18:45:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-25 18:45:59 +0300 |
commit | 7369332bb0a6d219cb2415a0b5e65bf2825da349 (patch) | |
tree | ef09d6526d0804e7370d41269e2e235d0c34cf6e /src/gui/windows/chatwindow.cpp | |
parent | 6b8cc23d56d0f46bb8b53bbfb3468adea6a7dd77 (diff) | |
download | mv-7369332bb0a6d219cb2415a0b5e65bf2825da349.tar.gz mv-7369332bb0a6d219cb2415a0b5e65bf2825da349.tar.bz2 mv-7369332bb0a6d219cb2415a0b5e65bf2825da349.tar.xz mv-7369332bb0a6d219cb2415a0b5e65bf2825da349.zip |
Add missing safeDraw to some windows.
Without it drawing code can mix safe and not safe drawing.
Diffstat (limited to 'src/gui/windows/chatwindow.cpp')
-rw-r--r-- | src/gui/windows/chatwindow.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index f4641670d..824ba4882 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -2081,6 +2081,18 @@ void ChatWindow::draw(Graphics* graphics) BLOCK_END("ChatWindow::draw") } +void ChatWindow::safeDraw(Graphics* graphics) +{ + BLOCK_START("ChatWindow::draw") + if (!mAutoHide || mHaveMouse) + { + GLDEBUG_START("ChatWindow::draw"); + Window::safeDraw(graphics); + GLDEBUG_END(); + } + BLOCK_END("ChatWindow::draw") +} + void ChatWindow::updateVisibility() { if (!gui) |