diff options
Diffstat (limited to 'src/plugins/imageformats/ico')
-rw-r--r-- | src/plugins/imageformats/ico/.prev_CMakeLists.txt | 21 | ||||
-rw-r--r-- | src/plugins/imageformats/ico/CMakeLists.txt | 20 | ||||
-rw-r--r-- | src/plugins/imageformats/ico/qicohandler.cpp | 6 |
3 files changed, 44 insertions, 3 deletions
diff --git a/src/plugins/imageformats/ico/.prev_CMakeLists.txt b/src/plugins/imageformats/ico/.prev_CMakeLists.txt new file mode 100644 index 0000000000..6151d6fd07 --- /dev/null +++ b/src/plugins/imageformats/ico/.prev_CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from ico.pro. + +##################################################################### +## QICOPlugin Plugin: +##################################################################### + +qt_add_plugin(QICOPlugin + OUTPUT_NAME qico + TYPE imageformats + SOURCES + main.cpp main.h + qicohandler.cpp qicohandler.h + LIBRARIES + Qt::CorePrivate + PUBLIC_LIBRARIES + Qt::Core + Qt::Gui +) + +#### Keys ignored in scope 1:.:.:ico.pro:<TRUE>: +# OTHER_FILES = "ico.json" diff --git a/src/plugins/imageformats/ico/CMakeLists.txt b/src/plugins/imageformats/ico/CMakeLists.txt new file mode 100644 index 0000000000..1174848d5e --- /dev/null +++ b/src/plugins/imageformats/ico/CMakeLists.txt @@ -0,0 +1,20 @@ +# Generated from ico.pro. + +##################################################################### +## QICOPlugin Plugin: +##################################################################### + +qt_add_plugin(QICOPlugin + OUTPUT_NAME qico + TYPE imageformats + SOURCES + main.cpp main.h + qicohandler.cpp qicohandler.h + PUBLIC_LIBRARIES + Qt::Core + Qt::CorePrivate + Qt::Gui +) + +#### Keys ignored in scope 1:.:.:ico.pro:<TRUE>: +# OTHER_FILES = "ico.json" diff --git a/src/plugins/imageformats/ico/qicohandler.cpp b/src/plugins/imageformats/ico/qicohandler.cpp index eb50f52bd6..1982e05344 100644 --- a/src/plugins/imageformats/ico/qicohandler.cpp +++ b/src/plugins/imageformats/ico/qicohandler.cpp @@ -356,7 +356,7 @@ void ICOReader::read1BitBMP(QImage & image) if (iod) { int h = image.height(); - int bpl = image.bytesPerLine(); + qsizetype bpl = image.bytesPerLine(); while (--h >= 0) { if (iod->read((char*)image.scanLine(h),bpl) != bpl) { @@ -405,7 +405,7 @@ void ICOReader::read8BitBMP(QImage & image) if (iod) { int h = icoAttrib.h; - int bpl = image.bytesPerLine(); + qsizetype bpl = image.bytesPerLine(); while (--h >= 0) { if (iod->read((char *)image.scanLine(h), bpl) != bpl) { @@ -425,7 +425,7 @@ void ICOReader::read16_24_32BMP(QImage & image) QRgb *p; QRgb *end; uchar *buf = new uchar[image.bytesPerLine()]; - int bpl = ((icoAttrib.w*icoAttrib.nbits+31)/32)*4; + qsizetype bpl = ((qsizetype(icoAttrib.w)*icoAttrib.nbits+31)/32)*4; uchar *b; while (--h >= 0) { |