diff options
author | Sami Merila <sami.merila@nokia.com> | 2010-04-16 12:37:03 (GMT) |
---|---|---|
committer | Sami Merila <sami.merila@nokia.com> | 2010-04-16 12:37:03 (GMT) |
commit | 77b320ca8a29cea2d302348a833d5e1727242769 (patch) | |
tree | 644f3872cd6ecfea538b4726644278fec7ac2259 /src/gui/styles | |
parent | 3fdf7e7a120b72819c5a0997ddb65951d4889813 (diff) | |
download | Qt-77b320ca8a29cea2d302348a833d5e1727242769.zip Qt-77b320ca8a29cea2d302348a833d5e1727242769.tar.gz Qt-77b320ca8a29cea2d302348a833d5e1727242769.tar.bz2 |
QS60Style: Qt does not draw transparency correctly
This is due to default mask depth in QS60Style. It is currently set as
default EGray2 and then inquiried from S60SkinServer. For 3.1 devices,
skinserver does not explicitly set the mask depth (even though default
is 8bit mask), so no value is returned and default value is used.
This leads to a situation where style uses 2bit masks for 9 or 3 part
frame graphics.
Corrected by changing the default value to 8bit mask (EGray256).
Task-number: QTBUG-9927
Reviewed-by: Janne Anttila
Diffstat (limited to 'src/gui/styles')
-rw-r--r-- | src/gui/styles/qs60style_s60.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qs60style_s60.cpp b/src/gui/styles/qs60style_s60.cpp index 74da51e..1ec5869 100644 --- a/src/gui/styles/qs60style_s60.cpp +++ b/src/gui/styles/qs60style_s60.cpp @@ -919,7 +919,7 @@ QPixmap QS60StyleModeSpecifics::createSkinnedGraphicsLX(QS60StylePrivate::SkinFr result = fromFbsBitmap(frame, NULL, flags, targetSize); } } else { - TDisplayMode maskDepth = EGray2; + TDisplayMode maskDepth = EGray256; // Query the skin item for possible frame graphics mask details. if (skinInstance) { CAknsMaskedBitmapItemData* skinMaskedBmp = static_cast<CAknsMaskedBitmapItemData*>( |