diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-25 21:47:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-25 21:47:57 +0300 |
commit | 1f4410ab9ac4064ff0cfb0fd31b4e942bee82277 (patch) | |
tree | 4b1089f8ba8b33b26fe74911d31ed2ae0f933824 /src/gui/widgets/scrollarea.cpp | |
parent | bea613d8ba11a64ccf36a01735f2839894ca9476 (diff) | |
download | plus-1f4410ab9ac4064ff0cfb0fd31b4e942bee82277.tar.gz plus-1f4410ab9ac4064ff0cfb0fd31b4e942bee82277.tar.bz2 plus-1f4410ab9ac4064ff0cfb0fd31b4e942bee82277.tar.xz plus-1f4410ab9ac4064ff0cfb0fd31b4e942bee82277.zip |
Add method safeDrawChildren for safe OpenGL renderer.
Diffstat (limited to 'src/gui/widgets/scrollarea.cpp')
-rw-r--r-- | src/gui/widgets/scrollarea.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/gui/widgets/scrollarea.cpp b/src/gui/widgets/scrollarea.cpp index 3da38aaeb..481e4365d 100644 --- a/src/gui/widgets/scrollarea.cpp +++ b/src/gui/widgets/scrollarea.cpp @@ -394,17 +394,7 @@ void ScrollArea::safeDraw(Graphics *graphics) updateAlpha(); - if (mRedraw) - { - const bool redraw = graphics->getRedraw(); - graphics->setRedraw(true); - drawChildren(graphics); - graphics->setRedraw(redraw); - } - else - { - drawChildren(graphics); - } + safeDrawChildren(graphics); mRedraw = false; BLOCK_END("ScrollArea::draw") } |