Qt: RGBA8888 only in Qt5.2+

This commit is contained in:
Sacha committed 2014-06-26 17:42:36 +10:00
1 parent 9c0d44ceb0
commit ae341ca45e
1 file changed
+1 -1
+1 -1
View File
@@ -26,7 +26,7 @@ int pngLoad(const char *file, int *pwidth, int *pheight, unsigned char **image_d
*pwidth = image.width();
*pheight = image.height();
*image_data_ptr = (unsigned char *)malloc(image.byteCount());
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
#if QT_VERSION < QT_VERSION_CHECK(5, 2, 0)
image.convertToFormat(QImage::Format_ARGB32);
uint32_t *src = (uint32_t*) image.bits();
uint32_t *dest = (uint32_t*) *image_data_ptr;