From: Václav Slavík Date: Sun, 11 Nov 2001 19:00:25 +0000 (+0000) Subject: fixed stupid big when assigning wxImage's palette to wxBitmap X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f9619ece1db7827a08ef7b1c04be60a3e5c88b77 fixed stupid big when assigning wxImage's palette to wxBitmap git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mgl/bitmap.cpp b/src/mgl/bitmap.cpp index ca87f8483b..0520051d37 100644 --- a/src/mgl/bitmap.cpp +++ b/src/mgl/bitmap.cpp @@ -307,7 +307,7 @@ wxBitmap::wxBitmap(const wxImage& image, int depth = -1) MGLDevCtx *bdc = CreateTmpDC(); - if ( depth <= 8 && image.HasPalette() ) + if ( GetDepth() <= 8 && image.HasPalette() ) SetPalette(image.GetPalette()); bdc->bitBlt(idc, 0, 0, width, height, 0, 0, MGL_REPLACE_MODE);