X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7679ac6334c85e41b90084ec5fb336945e352b81..e6adf05834e880312efa3d59914ecc1d4f5f78a6:/src/common/gifdecod.cpp?ds=sidebyside diff --git a/src/common/gifdecod.cpp b/src/common/gifdecod.cpp index 51451aa60c..78344a08c1 100644 --- a/src/common/gifdecod.cpp +++ b/src/common/gifdecod.cpp @@ -588,8 +588,12 @@ int wxGIFDecoder::ReadGIF() /* fill in the data */ m_f->Read(buf, 9); + pimg->left = buf[0] + 256 * buf[1]; + pimg->top = buf[2] + 256 * buf[3]; +/* pimg->left = buf[4] + 256 * buf[5]; pimg->top = buf[4] + 256 * buf[5]; +*/ pimg->w = buf[4] + 256 * buf[5]; pimg->h = buf[6] + 256 * buf[7]; interl = ((buf[8] & 0x40)? 1 : 0);