We always use 32 bit depth on OSX for this conversion from wxImage
This commit is contained in:
@@ -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) ;
|
||||
|
Reference in New Issue
Block a user