summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpaintengine_raster.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/painting/qpaintengine_raster.cpp')
-rw-r--r--src/gui/painting/qpaintengine_raster.cpp26
1 files changed, 2 insertions, 24 deletions
diff --git a/src/gui/painting/qpaintengine_raster.cpp b/src/gui/painting/qpaintengine_raster.cpp
index 97fde57106..322bff9b57 100644
--- a/src/gui/painting/qpaintengine_raster.cpp
+++ b/src/gui/painting/qpaintengine_raster.cpp
@@ -407,36 +407,14 @@ void QRasterPaintEngine::init()
case QImage::Format_Mono:
d->mono_surface = true;
break;
- case QImage::Format_ARGB8565_Premultiplied:
- case QImage::Format_ARGB8555_Premultiplied:
- case QImage::Format_ARGB6666_Premultiplied:
- case QImage::Format_ARGB4444_Premultiplied:
- case QImage::Format_ARGB32_Premultiplied:
- case QImage::Format_ARGB32:
- case QImage::Format_RGBA8888_Premultiplied:
- case QImage::Format_RGBA8888:
- case QImage::Format_A2BGR30_Premultiplied:
- case QImage::Format_A2RGB30_Premultiplied:
- gccaps |= PorterDuff;
- break;
- case QImage::Format_RGB32:
- case QImage::Format_RGB444:
- case QImage::Format_RGB555:
- case QImage::Format_RGB666:
- case QImage::Format_RGB888:
- case QImage::Format_RGB16:
- case QImage::Format_RGBX8888:
- case QImage::Format_BGR30:
- case QImage::Format_RGB30:
- break;
default:
+ if (QImage::toPixelFormat(format).alphaUsage() == QPixelFormat::UsesAlpha)
+ gccaps |= PorterDuff;
break;
}
}
-
-
/*!
Destroys this paint engine.
*/