diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-01 20:29:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-01 22:58:18 +0300 |
commit | 96007521ba20250db0ed05e4d6117077690637db (patch) | |
tree | 8731f51b493944dd537532db568d80f3f8d8b927 /src/gui/widgets/window.cpp | |
parent | d418537e26ec75bc656518dab293ff6313998682 (diff) | |
download | plus-96007521ba20250db0ed05e4d6117077690637db.tar.gz plus-96007521ba20250db0ed05e4d6117077690637db.tar.bz2 plus-96007521ba20250db0ed05e4d6117077690637db.tar.xz plus-96007521ba20250db0ed05e4d6117077690637db.zip |
add batch draw to equipment window.
Diffstat (limited to 'src/gui/widgets/window.cpp')
-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 ba6d982c8..8c1f63e29 100644 --- a/src/gui/widgets/window.cpp +++ b/src/gui/widgets/window.cpp @@ -54,6 +54,7 @@ Window::Window(const std::string &caption, const bool modal, mDefaultY(0), mDefaultWidth(0), mDefaultHeight(0), + mLastRedraw(true), mGrip(nullptr), mParent(parent), mLayout(nullptr), @@ -200,6 +201,7 @@ void Window::draw(gcn::Graphics *graphics) } if (mRedraw) { + mLastRedraw = true; mRedraw = false; update = true; mVertexes->clear(); @@ -229,7 +231,10 @@ void Window::draw(gcn::Graphics *graphics) g->calcTile(mVertexes, mGrip, mGripRect.x, mGripRect.y); } - + else + { + mLastRedraw = false; + } g->drawTile(mVertexes); } else |