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
This commit is contained in:
parent
1acd70f921
commit
f9619ece1d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user