qpixmap_win.cpp: Fix typo in format conversion (alpha).
Change-Id: I8abdae5482e94a7f9af494e5d547352431285336 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>bb10
parent
7beed86493
commit
097a3f4231
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue