X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f7b34a878bbcb2f71a0c7694e2a3bec51460218..625cb8c0b1ac12f26265cae2c69d7f510de0edb1:/src/mgl/bitmap.cpp?ds=sidebyside diff --git a/src/mgl/bitmap.cpp b/src/mgl/bitmap.cpp index 1e685b40ca..b2489c75fd 100644 --- a/src/mgl/bitmap.cpp +++ b/src/mgl/bitmap.cpp @@ -306,7 +306,7 @@ wxImage wxBitmap::ConvertToImage() const { wxCHECK_MSG( Ok(), FALSE, wxT("invalid bitmap") ); - long width, height; + int width, height; width = GetWidth(); height = GetHeight(); @@ -517,6 +517,7 @@ MGLDevCtx *wxBitmap::CreateTmpDC() const case 4: cnt = 16; break; case 8: cnt = 256; break; default: + cnt = 0; wxFAIL_MSG( wxT("bitmap with this depth cannot have palette") ); break; }