svgtopt/nvgdecoder/src/TLVRenderer.cpp
changeset 1 bfff372fb1f4
parent 0 d46562c3d99d
child 17 443d52b01c62
--- a/svgtopt/nvgdecoder/src/TLVRenderer.cpp	Thu Jan 07 16:19:02 2010 +0200
+++ b/svgtopt/nvgdecoder/src/TLVRenderer.cpp	Mon Jan 18 21:03:31 2010 +0200
@@ -765,10 +765,10 @@
 
     if (!iScaled)
         {
-        VGfloat scaleX = iTargetWidth  / width;
-        VGfloat scaleY = iTargetHeight / height;
+        VGfloat scaleX = ((VGfloat)iTargetWidth)  / width;
+        VGfloat scaleY = ((VGfloat)iTargetHeight) / height;
         vgLoadMatrix(iUserMatrix);
-        vgTranslate(iTargetWidth / 2, iTargetHeight / 2);
+        vgTranslate(((VGfloat)iTargetWidth) / 2, ((VGfloat)iTargetHeight) / 2);
         vgScale(scaleX, scaleY);
         vgTranslate(- width / 2, - height / 2);