--- a/src/hbservers/hbthemeserver/hbsgimageiconprocessor_p.cpp Mon May 03 12:48:33 2010 +0300
+++ b/src/hbservers/hbthemeserver/hbsgimageiconprocessor_p.cpp Fri May 14 16:09:54 2010 +0300
@@ -36,7 +36,6 @@
-static HbNvgEngine nvgEngine;
HbSgImageRenderer* HbSgimageIconProcessor::sgImageRenderer = HbSgImageRenderer::global();
struct HbSgImageClosure
@@ -327,10 +326,10 @@
}
NvgAspectRatioSettings settings = mapKeyAspectRatioToNvgAspectRatio(aspectRatioMode);
- nvgEngine.setPreserveAspectRatio(settings.nvgAlignStatusAndAspectRatio, settings.type);
- nvgEngine.enableMirroring(mirrored);
+ sgImageRenderer->nvgEngine()->setPreserveAspectRatio(settings.nvgAlignStatusAndAspectRatio, settings.type);
+ sgImageRenderer->nvgEngine()->enableMirroring(mirrored);
- HbNvgEngine::HbNvgErrorType errorType = nvgEngine.drawNvg(byteArray, size);
+ HbNvgEngine::HbNvgErrorType errorType = sgImageRenderer->nvgEngine()->drawNvg(byteArray, size);
return errorType == HbNvgEngine::NvgErrNone;
}