diff options
author | Eugene Sandulenko | 2010-09-04 09:55:54 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-12 23:35:57 +0000 |
commit | 5f8739209b2cb637348954fd428594658daf2df4 (patch) | |
tree | 8080c4f10d5ed1fd08d83eb10df13dc629a9d916 /engines | |
parent | feefc111dd5536616149a410d7e06649d8422992 (diff) | |
download | scummvm-rg350-5f8739209b2cb637348954fd428594658daf2df4.tar.gz scummvm-rg350-5f8739209b2cb637348954fd428594658daf2df4.tar.bz2 scummvm-rg350-5f8739209b2cb637348954fd428594658daf2df4.zip |
SWORD25: Fix pen width for vector images
svn-id: r53318
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sword25/gfx/image/vectorimagerenderer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sword25/gfx/image/vectorimagerenderer.cpp b/engines/sword25/gfx/image/vectorimagerenderer.cpp index c784be2dad..e047935c15 100644 --- a/engines/sword25/gfx/image/vectorimagerenderer.cpp +++ b/engines/sword25/gfx/image/vectorimagerenderer.cpp @@ -294,7 +294,8 @@ void VectorImage::render(int width, int height) { } 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); |