diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-27 13:09:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-27 13:09:18 +0300 |
commit | c6878ccb7ea621931bc500cd4e645a483c093451 (patch) | |
tree | 64be5075fcfaf3c842d94e085dbdf599549ed830 /src/gui | |
parent | 1f78138b67b0009c9bda235c4b7faf649ea890bf (diff) | |
download | plus-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.cpp | 7 |
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); |