qpixmap_win.cpp: Fix typo in format conversion (alpha).

Change-Id: I8abdae5482e94a7f9af494e5d547352431285336
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
bb10
Friedemann Kleint 2011-12-05 15:06:42 +01:00 committed by Qt by Nokia
parent 7beed86493
commit 097a3f4231
1 changed files with 2 additions and 2 deletions

View File

@ -115,9 +115,9 @@ Q_GUI_EXPORT HBITMAP qt_pixmapToWinHBITMAP(const QPixmap &p, int hbitmapFormat =
}
// Copy over the data
QImage::Format imageFormat = QImage::Format_ARGB32;
QImage::Format imageFormat = QImage::Format_RGB32;
if (hbitmapFormat == HBitmapAlpha)
imageFormat = QImage::Format_RGB32;
imageFormat = QImage::Format_ARGB32;
else if (hbitmapFormat == HBitmapPremultipliedAlpha)
imageFormat = QImage::Format_ARGB32_Premultiplied;
const QImage image = rasterImage->convertToFormat(imageFormat);