From 66e48fd84bd18778112e5ecd72430a25b46e09de Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Mon, 12 Jan 2015 20:32:14 +0000 Subject: [PATCH] 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 --- src/propgrid/property.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propgrid/property.cpp b/src/propgrid/property.cpp index 1ce491982f..aabaa9e7d0 100644 --- a/src/propgrid/property.cpp +++ b/src/propgrid/property.cpp @@ -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());