Revision: 201001 PDK_3.0.f
authorDremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 18 Jan 2010 21:03:31 +0200
changeset 1 bfff372fb1f4
parent 0 d46562c3d99d
child 2 0c844a8549ae
Revision: 201001 Kit: 201003
svgtopt/nvgdecoder/src/TLVRenderer.cpp
svgtopt/nvgdecoder/src/nvg.cpp
--- 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);
 
--- a/svgtopt/nvgdecoder/src/nvg.cpp	Thu Jan 07 16:19:02 2010 +0200
+++ b/svgtopt/nvgdecoder/src/nvg.cpp	Mon Jan 18 21:03:31 2010 +0200
@@ -843,11 +843,14 @@
                     {
                     idoFill = VG_TRUE;
                     }
-                TUint16 offset = aOffsetVector->DerefInt16L(lOffsetIx * sizeof(TUint16));
-
-                TDereferencer section = GetCommandSectionL(offset, aIconData, aNVGVersion);
-
-                DrawPathL(&section);
+                
+                if (idoStroke != VG_FALSE || idoFill != VG_FALSE)
+                    {
+                    TUint16 offset        = aOffsetVector->DerefInt16L(lOffsetIx * sizeof(TUint16));    
+                    TDereferencer section = GetCommandSectionL(offset, aIconData, aNVGVersion);
+    
+                    DrawPathL(&section);
+                    }
                 
                 break;
                 }