From f9619ece1db7827a08ef7b1c04be60a3e5c88b77 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 11 Nov 2001 19:00:25 +0000 Subject: [PATCH 1/1] 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 --- src/mgl/bitmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2