summaryrefslogtreecommitdiffstats
path: root/src/plugins/gfxdrivers
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-07-17 00:35:59 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-07-17 00:35:59 (GMT)
commit86ea4dbb5a748491656d9621ecd58238bc3e3d82 (patch)
tree90995df0724d85c93c54c10b188e39929c6eb551 /src/plugins/gfxdrivers
parent2883cf47431c9d944ccd40785b079d8625df14f1 (diff)
downloadQt-86ea4dbb5a748491656d9621ecd58238bc3e3d82.zip
Qt-86ea4dbb5a748491656d9621ecd58238bc3e3d82.tar.gz
Qt-86ea4dbb5a748491656d9621ecd58238bc3e3d82.tar.bz2
Don't assume that raster can do porter duff in dfb
PorterDuff should only be enabled if the raster engine says it is. E.g. if we're painting on a format with alpha. Reviewed-by: TrustMe
Diffstat (limited to 'src/plugins/gfxdrivers')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
index 9aaae62..305d5be 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
@@ -232,11 +232,7 @@ bool QDirectFBPaintEngine::begin(QPaintDevice *device)
device->devType());
}
- const bool status = QRasterPaintEngine::begin(device);
- // XXX: QRasterPaintEngine::begin() resets the capabilities
- gccaps |= PorterDuff;
- d->prepare(d->dfbDevice);
- return status;
+ return QRasterPaintEngine::begin(device);
}
bool QDirectFBPaintEngine::end()