[Scummvm-cvs-logs] CVS: scummvm/gui ThemeNew.cpp,1.10,1.11

Johannes Schickel lordhoto at users.sourceforge.net
Sun Jan 29 07:08:03 CET 2006


Update of /cvsroot/scummvm/scummvm/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24233

Modified Files:
	ThemeNew.cpp 
Log Message:
Fixes redraw bugs with the about dialog and the new theme.


Index: ThemeNew.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/ThemeNew.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- ThemeNew.cpp	29 Jan 2006 12:41:58 -0000	1.10
+++ ThemeNew.cpp	29 Jan 2006 15:07:03 -0000	1.11
@@ -300,7 +300,9 @@
 void ThemeNew::drawText(const Common::Rect &r, const Common::String &str, kState state, kTextAlign align, bool inverted, int deltax, bool useEllipsis) {
 	if (!_initOk)
 		return;
-	Common::Rect r2(r.left, r.top, r.right, r.top+_font->getFontHeight()+2);
+	// FIXME:since the 'height' of the font seems not to be correct we just add 4 to it right now
+	// that should fix redraw bugs with the about dialog
+	Common::Rect r2(r.left, r.top, r.right, r.top+_font->getFontHeight()+4);
 
 	restoreBackground(r2);
 





More information about the Scummvm-git-logs mailing list