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:
@@ -1050,7 +1050,7 @@ bool wxBitmap::DoCreate(const wxSize& size, double scale, int d)
|
||||
d = wxDisplayDepth() ;
|
||||
|
||||
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() ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user