[Scummvm-cvs-logs] SF.net SVN: scummvm: [22680] scummvm/trunk/gui/ThemeNew.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sat May 27 05:49:04 CEST 2006


Revision: 22680
Author:   lordhoto
Date:     2006-05-27 05:48:31 -0700 (Sat, 27 May 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22680&view=rev

Log Message:
-----------
Don't draw the shadow outside the scrollbar (should fix 'garbage' when moving the scrollbar)

Modified Paths:
--------------
    scummvm/trunk/gui/ThemeNew.cpp
Modified: scummvm/trunk/gui/ThemeNew.cpp
===================================================================
--- scummvm/trunk/gui/ThemeNew.cpp	2006-05-27 12:39:55 UTC (rev 22679)
+++ scummvm/trunk/gui/ThemeNew.cpp	2006-05-27 12:48:31 UTC (rev 22680)
@@ -830,13 +830,15 @@
 	}
 	
 	r2 = r;
+	r2.left += 1;
+	r2.right -= 1;
 	r2.top += sliderY;
-	r2.bottom = r2.top + sliderHeight;
+	r2.bottom = r2.top + sliderHeight - 1;
 	
 	drawShadow(r2, surface(kSliderCorner), surface(kSliderTop), surface(kSliderLeft), surface(kSliderBkgd), kShadowSmall);
 
-	r2.left += 2;
-	r2.right -= 2;	
+	r2.left += 1;
+	r2.right -= 1;
 
 	r2.bottom = r2.top + sliderHeight / 2 + surface(kScrollbarCorner)->h + 4;
 	drawRectMasked(r2, surface(kScrollbarCorner), surface(kScrollbarTop), surface(kScrollbarLeft), surface(kScrollbarBkgd), 256,


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