[Scummvm-cvs-logs] SF.net SVN: scummvm:[33533] scummvm/branches/gsoc2008-gui/gui/ThemeRenderer .cpp
Tanoku at users.sourceforge.net
Tanoku at users.sourceforge.net
Sat Aug 2 18:30:26 CEST 2008
Revision: 33533
http://scummvm.svn.sourceforge.net/scummvm/?rev=33533&view=rev
Author: Tanoku
Date: 2008-08-02 16:30:25 +0000 (Sat, 02 Aug 2008)
Log Message:
-----------
Fixed: Text selection background overlap scrollbars.
Modified Paths:
--------------
scummvm/branches/gsoc2008-gui/gui/ThemeRenderer.cpp
Modified: scummvm/branches/gsoc2008-gui/gui/ThemeRenderer.cpp
===================================================================
--- scummvm/branches/gsoc2008-gui/gui/ThemeRenderer.cpp 2008-08-02 16:23:58 UTC (rev 33532)
+++ scummvm/branches/gsoc2008-gui/gui/ThemeRenderer.cpp 2008-08-02 16:30:25 UTC (rev 33533)
@@ -362,7 +362,12 @@
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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list