summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-27 13:09:18 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-27 13:09:18 +0300
commitc6878ccb7ea621931bc500cd4e645a483c093451 (patch)
tree64be5075fcfaf3c842d94e085dbdf599549ed830 /src/gui
parent1f78138b67b0009c9bda235c4b7faf649ea890bf (diff)
downloadplus-c6878ccb7ea621931bc500cd4e645a483c093451.tar.gz
plus-c6878ccb7ea621931bc500cd4e645a483c093451.tar.bz2
plus-c6878ccb7ea621931bc500cd4e645a483c093451.tar.xz
plus-c6878ccb7ea621931bc500cd4e645a483c093451.zip
Clear draw vertexes if window going hidden.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/window.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index e781ec548..f4921e7ca 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -688,9 +688,14 @@ void Window::widgetMoved(const Event& event A_UNUSED)
void Window::widgetHidden(const Event &event A_UNUSED)
{
- mTextChanged = true;
+ if (isBatchDrawRenders(openGLMode))
+ mVertexes->clear();
+
mTextChunk.deleteImage();
+ mTextChanged = true;
+ mRedraw = true;
+
if (gui)
gui->setCursorType(Cursor::CURSOR_POINTER);