From eb0c95a5ea4d83b911b08fde4678f1046a5b9115 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 26 Jun 2017 10:58:35 +0200 Subject: [PATCH] We always use 32 bit depth on OSX for this conversion from wxImage --- src/osx/core/bitmap.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/osx/core/bitmap.cpp b/src/osx/core/bitmap.cpp index 46eeb49c23..bd97d66fc8 100644 --- a/src/osx/core/bitmap.cpp +++ b/src/osx/core/bitmap.cpp @@ -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) ;