We always use 32 bit depth on OSX for this conversion from wxImage

This commit is contained in:
Stefan Csomor
2017-06-26 10:58:35 +02:00
parent d9228f471c
commit eb0c95a5ea

View File

@@ -1212,7 +1212,9 @@ wxBitmap::wxBitmap(const wxImage& image, int depth, double scale)
// width and height of the device-dependent bitmap
int width = image.GetWidth();
int height = image.GetHeight();
// we always use 32 bit internally here
depth = 32;
wxBitmapRefData* bitmapRefData;
m_refData = bitmapRefData = new wxBitmapRefData( width/scale, height/scale, depth, scale) ;