summaryrefslogtreecommitdiff
path: root/src/gui/widgets/scrollarea.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-21 06:09:30 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-21 06:09:30 +0300
commit005d429599088b523e4f62326824c7fb51ba9c63 (patch)
treedccce15cf132bae28c85be897d5f7cc33299ea17 /src/gui/widgets/scrollarea.cpp
parent8037d33c9f429d4c0322da383cdda46776c3c14e (diff)
downloadmanaverse-005d429599088b523e4f62326824c7fb51ba9c63.tar.gz
manaverse-005d429599088b523e4f62326824c7fb51ba9c63.tar.bz2
manaverse-005d429599088b523e4f62326824c7fb51ba9c63.tar.xz
manaverse-005d429599088b523e4f62326824c7fb51ba9c63.zip
Fix draw issue in SDL after vertex precalculation.
Diffstat (limited to 'src/gui/widgets/scrollarea.cpp')
-rw-r--r--src/gui/widgets/scrollarea.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/widgets/scrollarea.cpp b/src/gui/widgets/scrollarea.cpp
index 0be492ee6..59e323e94 100644
--- a/src/gui/widgets/scrollarea.cpp
+++ b/src/gui/widgets/scrollarea.cpp
@@ -350,6 +350,10 @@ void ScrollArea::drawFrame(gcn::Graphics *graphics)
mDrawWidth = rect.width;
mDrawHeight = rect.height;
}
+ else if (static_cast<Graphics*>(graphics)->getRedraw())
+ {
+ recalc = true;
+ }
}
if (recalc)