diff --git a/kimgio/tiff.cpp b/kimgio/tiff.cpp index 12205037..c3a2b157 100644 --- a/kimgio/tiff.cpp +++ b/kimgio/tiff.cpp @@ -186,7 +186,7 @@ bool TIFFHandler::read(QImage *image) return false; } - uint32 tiffwidth = 0; + uint32_t tiffwidth = 0; tiffresult = TIFFGetField(tiffclient, TIFFTAG_IMAGEWIDTH, &tiffwidth); if (Q_UNLIKELY(tiffresult != 1)) { kWarning() << "Could not get image width"; @@ -196,7 +196,7 @@ bool TIFFHandler::read(QImage *image) return false; } - uint32 tiffheight = 0; + uint32_t tiffheight = 0; tiffresult = TIFFGetField(tiffclient, TIFFTAG_IMAGELENGTH, &tiffheight); if (Q_UNLIKELY(tiffresult != 1)) { kWarning() << "Could not get image length"; @@ -218,7 +218,7 @@ bool TIFFHandler::read(QImage *image) tiffresult = TIFFReadRGBAImageOriented( tiffclient, tiffwidth, tiffheight, - reinterpret_cast(image->bits()), ORIENTATION_TOPLEFT, + reinterpret_cast(image->bits()), ORIENTATION_TOPLEFT, 1 ); if (Q_UNLIKELY(tiffresult != 1)) {