Let system decide about required depth of rescaled bitmap in wxPGProperty::SetValueImage.
There is not necessary to fix the color depth - everything is determined internally when converting wxImage to wxBitmap. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2147,7 +2147,7 @@ void wxPGProperty::SetValueImage( wxBitmap& bmp )
|
||||
img.Rescale(wxRound(bmp.GetWidth()*scaleY),
|
||||
wxRound(bmp.GetHeight()*scaleY),
|
||||
wxIMAGE_QUALITY_HIGH);
|
||||
wxBitmap* bmpNew = new wxBitmap(img, 32);
|
||||
wxBitmap* bmpNew = new wxBitmap(img);
|
||||
#else
|
||||
// This is the old, deprecated method of scaling the image
|
||||
wxBitmap* bmpNew = new wxBitmap(maxSz.x,maxSz.y,bmp.GetDepth());
|
||||
|
Reference in New Issue
Block a user