uifw/ganes/src/HgVgSkinRenderer.cpp
branchRCL_3
changeset 3 8ca85d2f0db7
parent 0 2f259fa3e83a
child 6 9f56a4e1b8ab
equal deleted inserted replaced
0:2f259fa3e83a 3:8ca85d2f0db7
   113     iSkinImage = vgCreateImage(VG_sRGB_565, 
   113     iSkinImage = vgCreateImage(VG_sRGB_565, 
   114             iRect.Width(), iRect.Height(), 
   114             iRect.Width(), iRect.Height(), 
   115             VG_IMAGE_QUALITY_NONANTIALIASED);
   115             VG_IMAGE_QUALITY_NONANTIALIASED);
   116     
   116     
   117     // handle out of memory
   117     // handle out of memory
   118     VGErrorCode error = vgGetError();
   118     if( iSkinImage == VG_INVALID_HANDLE )
   119     if (iSkinImage == VG_INVALID_HANDLE || error == VG_OUT_OF_MEMORY_ERROR)
       
   120         {
   119         {
   121         User::Leave(KErrNoMemory);
   120         User::Leave(KErrNoMemory);
   122         }
   121         }
   123             
   122             
   124     // Copy to draw buffer to vg image
   123     // Copy to draw buffer to vg image