svgtopt/gfx2d/src/GfxGc/Gfx2dGcOpenVG.cpp
changeset 19 df65ec4f2d28
parent 0 d46562c3d99d
child 26 796196dd6e68
--- a/svgtopt/gfx2d/src/GfxGc/Gfx2dGcOpenVG.cpp	Fri Apr 16 15:55:53 2010 +0300
+++ b/svgtopt/gfx2d/src/GfxGc/Gfx2dGcOpenVG.cpp	Mon May 03 13:22:17 2010 +0300
@@ -2467,7 +2467,8 @@
     buffer = new (ELeave) TUint32[ iColorBufferSize.iWidth *   iColorBufferSize.iHeight ] ;
     
     iVgSurface->PrepareToBindClientBuffer();
-    VGImage vgImage = CreateVGImage( buffer, iColorBufferSize, EColor16MU, ETrue );
+    //VGImage vgImage = CreateVGImage( buffer, iColorBufferSize, EColor16MU, ETrue );
+    VGImage vgImage  = iVgRenderer->vgCreateImage( VG_sRGBA_8888_PRE,iColorBufferSize.iWidth, iColorBufferSize.iHeight, VG_IMAGE_QUALITY_FASTER );
     //Clear VGImage
     VGfloat color[4] = { 1.0f, 1.0f, 1.0f, 0.0f }; 
         iVgRenderer->vgSetfv(VG_CLEAR_COLOR, 4, color);
@@ -2874,7 +2875,7 @@
 {
     // Ensure OpenVG is initialized: could have been terminated by another Svg engine
     // Returns immediately if already initialized
-         TInt err = iVgSurface->InitializeSurface( iColorBufferSize, VGI_COLORSPACE_SRGB );//NGA    --- testing purpose//srikanth
+         TInt err = iVgSurface->InitializeSurface( iColorBufferSize, VGI_COLORSPACE_SRGB );
         if (!((err == KErrNone) || (err == KErrAlreadyExists)))
             {
             #ifdef _DEBUG