equal
deleted
inserted
replaced
1385 if (iIconCommands) |
1385 if (iIconCommands) |
1386 iIconCommands->Draw(size, aNvgEngine); |
1386 iIconCommands->Draw(size, aNvgEngine); |
1387 else |
1387 else |
1388 aNvgEngine->DrawNvg(GetNvgDataWithoutHeader(aNVGData), size, NULL, NULL); |
1388 aNvgEngine->DrawNvg(GetNvgDataWithoutHeader(aNVGData), size, NULL, NULL); |
1389 } |
1389 } |
|
1390 #ifndef __WINS__ |
1390 // assume 32bpp for the icon, don't cache if it's too large |
1391 // assume 32bpp for the icon, don't cache if it's too large |
1391 TInt bitmapBytes = aDestSize.iWidth*aDestSize.iHeight*4; |
1392 TInt bitmapBytes = aDestSize.iWidth*aDestSize.iHeight*4; |
1392 if (bitmapBytes < 128*128*4) |
1393 if (bitmapBytes < 128*128*4) |
1393 { |
1394 { |
1394 // can't leave here (we would screw up the transformation matrix |
1395 // can't leave here (we would screw up the transformation matrix |
1414 if (rastererr) |
1415 if (rastererr) |
1415 { |
1416 { |
1416 delete rasterizedIcon; |
1417 delete rasterizedIcon; |
1417 } |
1418 } |
1418 } |
1419 } |
|
1420 #endif |
1419 } |
1421 } |
1420 |
1422 |
1421 // restore the old surface before restoring original modes |
1423 // restore the old surface before restoring original modes |
1422 oldSurface->MakeCurrent(); // This will also call the SetCurrentRenderSurface |
1424 oldSurface->MakeCurrent(); // This will also call the SetCurrentRenderSurface |
1423 |
1425 |