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); |
304 |
309 |
305 // Apply special color mode. |
310 // Apply special color mode. |
306 if(iColorMode == EColorDimmed) |
311 if(iColorMode == EColorDimmed) |
307 { |
312 { |
308 aGc.Enable(CHuiGc::EFeatureFog); |
313 aGc.Enable(CHuiGc::EFeatureFog); |
384 // Notify preferred size even if image is not drawn (yet) |
389 // Notify preferred size even if image is not drawn (yet) |
385 aGc.NotifyImagePreferredSize(iSecondaryImage, content); |
390 aGc.NotifyImagePreferredSize(iSecondaryImage, content); |
386 } |
391 } |
387 } |
392 } |
388 } |
393 } |
|
394 |
|
395 aGc.SetQuality(oldQuality); // restore quality |
389 |
396 |
390 // Disable special color modes. |
397 // Disable special color modes. |
391 if(iColorMode == EColorDimmed) |
398 if(iColorMode == EColorDimmed) |
392 { |
399 { |
393 aGc.Disable(CHuiGc::EFeatureFog); |
400 aGc.Disable(CHuiGc::EFeatureFog); |