diff options
Diffstat (limited to 'src/plugins/imageformats/gif')
-rw-r--r-- | src/plugins/imageformats/gif/.prev_CMakeLists.txt | 19 | ||||
-rw-r--r-- | src/plugins/imageformats/gif/CMakeLists.txt | 20 | ||||
-rw-r--r-- | src/plugins/imageformats/gif/qgifhandler.cpp | 4 |
3 files changed, 41 insertions, 2 deletions
diff --git a/src/plugins/imageformats/gif/.prev_CMakeLists.txt b/src/plugins/imageformats/gif/.prev_CMakeLists.txt new file mode 100644 index 0000000000..b4923b81b1 --- /dev/null +++ b/src/plugins/imageformats/gif/.prev_CMakeLists.txt @@ -0,0 +1,19 @@ +# Generated from gif.pro. + +##################################################################### +## QGifPlugin Plugin: +##################################################################### + +qt_add_plugin(QGifPlugin + OUTPUT_NAME qgif + TYPE imageformats + SOURCES + main.cpp main.h + qgifhandler.cpp qgifhandler_p.h + PUBLIC_LIBRARIES + Qt::Core + Qt::Gui +) + +#### Keys ignored in scope 1:.:.:gif.pro:<TRUE>: +# OTHER_FILES = "gif.json" diff --git a/src/plugins/imageformats/gif/CMakeLists.txt b/src/plugins/imageformats/gif/CMakeLists.txt new file mode 100644 index 0000000000..c6780e32e9 --- /dev/null +++ b/src/plugins/imageformats/gif/CMakeLists.txt @@ -0,0 +1,20 @@ +# Generated from gif.pro. + +##################################################################### +## QGifPlugin Plugin: +##################################################################### + +qt_add_plugin(QGifPlugin + OUTPUT_NAME qgif + TYPE imageformats + SOURCES + main.cpp main.h + qgifhandler.cpp qgifhandler_p.h + LIBRARIES # special case + Qt::GuiPrivate # special case + PUBLIC_LIBRARIES # special case + Qt::Gui # special case +) + +#### Keys ignored in scope 1:.:.:gif.pro:<TRUE>: +# OTHER_FILES = "gif.json" diff --git a/src/plugins/imageformats/gif/qgifhandler.cpp b/src/plugins/imageformats/gif/qgifhandler.cpp index c92cc3ea61..a672e92006 100644 --- a/src/plugins/imageformats/gif/qgifhandler.cpp +++ b/src/plugins/imageformats/gif/qgifhandler.cpp @@ -246,7 +246,7 @@ int QGIFFormat::decode(QImage *image, const uchar *buffer, int length, } image->detach(); - int bpl = image->bytesPerLine(); + qsizetype bpl = image->bytesPerLine(); unsigned char *bits = image->bits(); #define LM(l, m) (((m)<<8)|l) @@ -422,7 +422,7 @@ int QGIFFormat::decode(QImage *image, const uchar *buffer, int length, } memset(backingstore.bits(), 0, backingstore.sizeInBytes()); } - const int dest_bpl = backingstore.bytesPerLine(); + const qsizetype dest_bpl = backingstore.bytesPerLine(); unsigned char *dest_data = backingstore.bits(); for (int ln=0; ln<h; ln++) { memcpy(FAST_SCAN_LINE(dest_data, dest_bpl, ln), |