Fix CreateWithLogicalScale() to set correct scale in wxOSX

This got unfortunately broken by the changes of 94716fd801 (Add
wxBitmap::CreateWithLogicalSize(), 2022-01-22).
This commit is contained in:
Vadim Zeitlin
2022-02-11 18:00:51 +01:00
parent d130323a4c
commit 6f5ac3c594

View File

@@ -1050,7 +1050,7 @@ bool wxBitmap::DoCreate(const wxSize& size, double scale, int d)
d = wxDisplayDepth() ; d = wxDisplayDepth() ;
const wxSize sizePhys = size*scale; const wxSize sizePhys = size*scale;
m_refData = new wxBitmapRefData( sizePhys.x, sizePhys.y, d ); m_refData = new wxBitmapRefData( sizePhys.x, sizePhys.y, d, scale );
return GetBitmapData()->IsOk() ; return GetBitmapData()->IsOk() ;
} }