[Scummvm-cvs-logs] SF.net SVN: scummvm:[53318] scummvm/trunk/engines/sword25/gfx/image/ vectorimagerenderer.cpp

sev at users.sourceforge.net sev at users.sourceforge.net
Wed Oct 13 01:35:57 CEST 2010


Revision: 53318
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53318&view=rev
Author:   sev
Date:     2010-10-12 23:35:57 +0000 (Tue, 12 Oct 2010)

Log Message:
-----------
SWORD25: Fix pen width for vector images

Modified Paths:
--------------
    scummvm/trunk/engines/sword25/gfx/image/vectorimagerenderer.cpp

Modified: scummvm/trunk/engines/sword25/gfx/image/vectorimagerenderer.cpp
===================================================================
--- scummvm/trunk/engines/sword25/gfx/image/vectorimagerenderer.cpp	2010-10-12 23:35:37 UTC (rev 53317)
+++ scummvm/trunk/engines/sword25/gfx/image/vectorimagerenderer.cpp	2010-10-12 23:35:57 UTC (rev 53318)
@@ -294,7 +294,8 @@
 			}
 
 			if (_elements[j].getPathInfo(i).getLineStyle()) {
-				int penWidth = _elements[j].getLineStyleWidth(_elements[j].getPathInfo(i).getLineStyle() - 1);
+				double penWidth = _elements[j].getLineStyleWidth(_elements[j].getPathInfo(i).getLineStyle() - 1);
+				penWidth = sqrt(fabs(scaleFactorX * scaleFactorY));
 				ArtSVP *svp2 = art_svp_vpath_stroke(vec, ART_PATH_STROKE_JOIN_ROUND, ART_PATH_STROKE_CAP_ROUND, penWidth, 1.0, 0.5);
 				int color2 = _elements[j].getLineStyleColor(_elements[j].getPathInfo(i).getLineStyle() - 1);
 


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