summaryrefslogtreecommitdiffstats
path: root/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-04-08 23:49:08 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-04-09 01:23:26 (GMT)
commit6b494c48efa21f4ed3e2367f8bed8e138fd58190 (patch)
treea42d6c2447854b79168463088648cf18bebc4791 /src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h
parentd8dda2706408e0c9558966e74376834d290dc6e3 (diff)
downloadQt-6b494c48efa21f4ed3e2367f8bed8e138fd58190.zip
Qt-6b494c48efa21f4ed3e2367f8bed8e138fd58190.tar.gz
Qt-6b494c48efa21f4ed3e2367f8bed8e138fd58190.tar.bz2
Be smarter about alpha formats
Try harder to prevent blends by explicitly checking for alpha pixels in the source image (unless asked not to). Can be defined out by #defining QT_NO_DIRECTFB_OPAQUE_DETECTION Reviewed-by: Donald <qt-info@nokia.com>
Diffstat (limited to 'src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h b/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h
index 32676f8..7aa6df8 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h
@@ -75,7 +75,10 @@ public:
int metric(QPaintDevice::PaintDeviceMetric m) const {return QDirectFBPaintDevice::metric(m);}
private:
+ void invalidate();
QDirectFBPaintEngine *engine;
+ QImage::Format format;
+ bool alpha;
};
QT_END_HEADER