[Scummvm-cvs-logs] CVS: scummvm/gui ThemeNew.cpp,1.20,1.21

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Wed Feb 1 14:41:02 CET 2006


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

Modified Files:
	ThemeNew.cpp 
Log Message:
Fix glitch when moving the mouse over a disabled, checked checkbox. (The
check mark would become brighter, and I think it was because a transparent
mark was drawn over a transparent mark, thus "amplifying" it.)


Index: ThemeNew.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/ThemeNew.cpp,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- ThemeNew.cpp	1 Feb 2006 16:42:42 -0000	1.20
+++ ThemeNew.cpp	1 Feb 2006 22:39:54 -0000	1.21
@@ -586,8 +586,8 @@
 	const Graphics::Surface *checkBox = surface(checked ? kCheckboxChecked : kCheckboxEmpty);
 	int checkBoxSize = checkBox->w;
 	
+	restoreBackground(Common::Rect(r.left, r.top, r.left+checkBox->w, r.top+checkBox->h));
 	if (state == kStateHighlight && !checked) {
-		restoreBackground(Common::Rect(r.left, r.top, r.left+checkBox->w, r.top+checkBox->h));
 		checkBox = surface(!checked ? kCheckboxChecked : kCheckboxEmpty);
 		drawSurface(Common::Rect(r.left, r.top, r.left+checkBox->w, r.top+checkBox->h), checkBox, false, false, 128);
 	} else {





More information about the Scummvm-git-logs mailing list