diff --git a/src/common/artprov.cpp b/src/common/artprov.cpp index c8fd5fe80b..e7466eee26 100644 --- a/src/common/artprov.cpp +++ b/src/common/artprov.cpp @@ -222,7 +222,7 @@ void wxArtProvider::RescaleBitmap(wxBitmap& bmp, const wxSize& sizeNeeded) bmp = wxBitmap(img); #else // !wxUSE_IMAGE // Fallback method of scaling the bitmap - wxBitmap newBmp(sizeNeeded); + wxBitmap newBmp(sizeNeeded, bmp.GetDepth()); #if defined(__WXMSW__) || defined(__WXOSX__) // wxBitmap::UseAlpha() is used only on wxMSW and wxOSX. newBmp.UseAlpha(bmp.HasAlpha()); diff --git a/src/generic/srchctlg.cpp b/src/generic/srchctlg.cpp index a0a5e3336f..eed9aa7348 100644 --- a/src/generic/srchctlg.cpp +++ b/src/generic/srchctlg.cpp @@ -945,7 +945,7 @@ static void RescaleBitmap(wxBitmap& bmp, const wxSize& sizeNeeded) bmp = wxBitmap(img); #else // !wxUSE_IMAGE // Fallback method of scaling the bitmap - wxBitmap newBmp(sizeNeeded); + wxBitmap newBmp(sizeNeeded, bmp.GetDepth()); #if defined(__WXMSW__) || defined(__WXOSX__) // wxBitmap::UseAlpha() is used only on wxMSW and wxOSX. newBmp.UseAlpha(bmp.HasAlpha());