aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti2008-08-02 16:30:25 +0000
committerVicent Marti2008-08-02 16:30:25 +0000
commit03ffc30bdce0a62ce3cd3bcbd439d0f70e4dadf5 (patch)
treed8090a42d946d6dc779d38fd7541d9ec24e52311
parentc5980b6211bdb11c144c23f71470f4dde5ace3a9 (diff)
downloadscummvm-rg350-03ffc30bdce0a62ce3cd3bcbd439d0f70e4dadf5.tar.gz
scummvm-rg350-03ffc30bdce0a62ce3cd3bcbd439d0f70e4dadf5.tar.bz2
scummvm-rg350-03ffc30bdce0a62ce3cd3bcbd439d0f70e4dadf5.zip
Fixed: Text selection background overlap scrollbars.
svn-id: r33533
-rw-r--r--gui/ThemeRenderer.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/gui/ThemeRenderer.cpp b/gui/ThemeRenderer.cpp
index c7b0817110..1aca311f58 100644
--- a/gui/ThemeRenderer.cpp
+++ b/gui/ThemeRenderer.cpp
@@ -362,7 +362,12 @@ void ThemeRenderer::queueDD(DrawData type, const Common::Rect &r, uint32 dynamic
if (kDrawDataDefaults[type].parent != kDDNone && kDrawDataDefaults[type].parent != type)
queueDD(kDrawDataDefaults[type].parent, r);
- _screenQueue.push_back(q);
+ // HACK: text selection backgrounds must be drawn before other widgets, because
+ // they are implemented poorly and they overlap.
+ if (type == kDDTextSelectionBackground)
+ _screenQueue.push_front(q);
+ else
+ _screenQueue.push_back(q);
}
} else {
drawDD(q, !_widgets[type]->_buffer, _widgets[type]->_buffer);