Fix format for alpha drawing.

Task-number: QTBUG-28531

Change-Id: Ie97953950cad26776724848adc5751c861903cf7
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
bb10
Friedemann Kleint 2013-04-18 13:43:31 +02:00 committed by The Qt Project
parent b982679940
commit b3bed2c8de
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ void QWindowsBackingStore::resize(const QSize &size, const QRegion &region)
#endif
QImage::Format format = QWindowsNativeImage::systemFormat();
if (format == QImage::Format_RGB32 && rasterWindow()->window()->format().hasAlpha())
format = QImage::Format_ARGB32;
format = QImage::Format_ARGB32_Premultiplied;
m_image.reset(new QWindowsNativeImage(size.width(), size.height(), format));
}
}