equal
deleted
inserted
replaced
299 } |
299 } |
300 |
300 |
301 // Actual color of the image. |
301 // Actual color of the image. |
302 aGc.SetPenAlpha(TInt(effectiveOpacity * 255)); |
302 aGc.SetPenAlpha(TInt(effectiveOpacity * 255)); |
303 aGc.SetPenColor(iColor); |
303 aGc.SetPenColor(iColor); |
304 |
|
305 // Render Alf image visuals always with high quality. Otherwise scaling etc. with ALF apis |
|
306 // might produce low-quality |
|
307 const THuiQuality oldQuality = aGc.Quality(); // store the original quality |
|
308 aGc.SetQuality(EHuiQualityAccurate); |
|
309 |
304 |
310 // Apply special color mode. |
305 // Apply special color mode. |
311 if(iColorMode == EColorDimmed) |
306 if(iColorMode == EColorDimmed) |
312 { |
307 { |
313 aGc.Enable(CHuiGc::EFeatureFog); |
308 aGc.Enable(CHuiGc::EFeatureFog); |
389 // Notify preferred size even if image is not drawn (yet) |
384 // Notify preferred size even if image is not drawn (yet) |
390 aGc.NotifyImagePreferredSize(iSecondaryImage, content); |
385 aGc.NotifyImagePreferredSize(iSecondaryImage, content); |
391 } |
386 } |
392 } |
387 } |
393 } |
388 } |
394 |
|
395 aGc.SetQuality(oldQuality); // restore quality |
|
396 |
389 |
397 // Disable special color modes. |
390 // Disable special color modes. |
398 if(iColorMode == EColorDimmed) |
391 if(iColorMode == EColorDimmed) |
399 { |
392 { |
400 aGc.Disable(CHuiGc::EFeatureFog); |
393 aGc.Disable(CHuiGc::EFeatureFog); |