[Scummvm-cvs-logs] SF.net SVN: scummvm:[35479] scummvm/trunk/graphics/VectorRendererSpec.cpp

jvprat at users.sourceforge.net jvprat at users.sourceforge.net
Mon Dec 22 10:47:13 CET 2008


Revision: 35479
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35479&view=rev
Author:   jvprat
Date:     2008-12-22 09:47:13 +0000 (Mon, 22 Dec 2008)

Log Message:
-----------
Fix the rendering of stroked tabs

Modified Paths:
--------------
    scummvm/trunk/graphics/VectorRendererSpec.cpp

Modified: scummvm/trunk/graphics/VectorRendererSpec.cpp
===================================================================
--- scummvm/trunk/graphics/VectorRendererSpec.cpp	2008-12-22 00:57:05 UTC (rev 35478)
+++ scummvm/trunk/graphics/VectorRendererSpec.cpp	2008-12-22 09:47:13 UTC (rev 35479)
@@ -781,14 +781,14 @@
 
 		ptr_fill += pitch * real_radius;
 		while (short_h--) {
-			colorFill(ptr_fill, ptr_fill + Base::_strokeWidth - 1, color);
-			colorFill(ptr_fill + w - Base::_strokeWidth + 2, ptr_fill + w, color);
+			colorFill(ptr_fill, ptr_fill + Base::_strokeWidth, color);
+			colorFill(ptr_fill + w - Base::_strokeWidth + 1, ptr_fill + w + 1, color);
 			ptr_fill += pitch;
 		}
 		
 		if (baseLeft) {
 			sw = 0;
-			ptr_fill = (PixelType *)Base::_activeSurface->getBasePtr(x1, y1 + h);
+			ptr_fill = (PixelType *)Base::_activeSurface->getBasePtr(x1, y1 + h + 1);
 			while (sw++ < Base::_strokeWidth) {
 				colorFill(ptr_fill - baseLeft, ptr_fill, color);
 				ptr_fill += pitch;
@@ -797,7 +797,7 @@
 		
 		if (baseRight) {
 			sw = 0;
-			ptr_fill = (PixelType *)Base::_activeSurface->getBasePtr(x1 + w, y1 + h);
+			ptr_fill = (PixelType *)Base::_activeSurface->getBasePtr(x1 + w, y1 + h + 1);
 			while (sw++ < Base::_strokeWidth) {
 				colorFill(ptr_fill, ptr_fill + baseRight, color);
 				ptr_fill += pitch;


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