X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ed58dbeab64d18a0f869ea8e1610a0a88ad7b22c..275abf24e140159f2ac19b64b76737a6903b1319:/src/common/image.cpp diff --git a/src/common/image.cpp b/src/common/image.cpp index ac9acecf15..ab36e52be6 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -682,7 +682,11 @@ wxBitmap wxImage::ConvertToBitmap() const return wxNullBitmap; // sizeLimit is the MS upper limit for the DIB size +#ifdef WIN32 int sizeLimit = 1024*768*3; +#else + int sizeLimit = 0x7fff ; +#endif // width and height of the device-dependent bitmap int width = GetWidth();