X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32b8ec418aee4e38877d4cb79e2984c766dcc358..625cb8c0b1ac12f26265cae2c69d7f510de0edb1:/src/mgl/bitmap.cpp diff --git a/src/mgl/bitmap.cpp b/src/mgl/bitmap.cpp index 8c634464e4..b2489c75fd 100644 --- a/src/mgl/bitmap.cpp +++ b/src/mgl/bitmap.cpp @@ -2,7 +2,7 @@ // Name: bitmap.cpp // Author: Vaclav Slavik // RCS-ID: $Id$ -// Copyright: (c) 2001 Vaclav Slavik +// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com) // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -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; }