summaryrefslogtreecommitdiffstats
path: root/src/openvg
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2011-03-10 15:11:09 (GMT)
committerLaszlo Agocs <laszlo.p.agocs@nokia.com>2011-03-10 15:11:09 (GMT)
commit433e4380c98b9369a7d55894e9d34f8c87ba06e9 (patch)
treef9b6c97214607c9d0f7827af34114227b92a5570 /src/openvg
parent3c3176f43f049e0c26e56f04881bd8047e731915 (diff)
downloadQt-433e4380c98b9369a7d55894e9d34f8c87ba06e9.zip
Qt-433e4380c98b9369a7d55894e9d34f8c87ba06e9.tar.gz
Qt-433e4380c98b9369a7d55894e9d34f8c87ba06e9.tar.bz2
Fix for fromSymbianCFbsBitmap changing the source data unexpectedly.
Inverting the pixels for bitmaps of mode EGray2 is done in-place, which is wrong if the bitmap handle was duplicated. Instead, we need to make a copy. This also means that we cannot treat EGray2 a conversion-less format in openvg, but such images are likely to be used as masks only, so optimizing just for mere drawing in case of this format is not really necessary. Reviewed-by: Jani Hautakangas
Diffstat (limited to 'src/openvg')
-rw-r--r--src/openvg/qvg_symbian.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/openvg/qvg_symbian.cpp b/src/openvg/qvg_symbian.cpp
index 405151d..2924d41 100644
--- a/src/openvg/qvg_symbian.cpp
+++ b/src/openvg/qvg_symbian.cpp
@@ -157,7 +157,6 @@ static inline bool conversionLessFormat(QImage::Format format)
case QImage::Format_RGB32: // EColor16MU
case QImage::Format_ARGB32: // EColor16MA
case QImage::Format_ARGB32_Premultiplied: // EColor16MAP
- case QImage::Format_MonoLSB: // EGray2
case QImage::Format_Indexed8: // EGray256, EColor256
return true;
default: