From 7369332bb0a6d219cb2415a0b5e65bf2825da349 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 May 2015 18:45:59 +0300 Subject: Add missing safeDraw to some windows. Without it drawing code can mix safe and not safe drawing. --- src/gui/windows/chatwindow.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/gui/windows/chatwindow.cpp') 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) -- cgit v1.2.3-60-g2f50