Bugfix: Text selection background in list widget overlays scrollbar (finally).

Bugfix: Game list missing one entry.

svn-id: r33658
This commit is contained in:
Vicent Marti 2008-08-06 13:58:07 +00:00
parent ef7a14dbe2
commit 4095f2eea9
6 changed files with 34 additions and 20 deletions

View file

@ -361,13 +361,8 @@ void ThemeRenderer::queueDD(DrawData type, const Common::Rect &r, uint32 dynamic
} else {
if (kDrawDataDefaults[type].parent != kDDNone && kDrawDataDefaults[type].parent != type)
queueDD(kDrawDataDefaults[type].parent, r);
// 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);
_screenQueue.push_back(q);
}
} else {
drawDD(q, !_widgets[type]->_buffer, _widgets[type]->_buffer);