Use wxBitmap::GetNSImage() in Cocoa code

Use Cocoa-specific function rather than generically-named GetImage().

No real changes.
This commit is contained in:
Vadim Zeitlin
2021-09-03 21:27:58 +02:00
parent 6f4c57260b
commit be923dc9fe

View File

@@ -2419,7 +2419,7 @@ void wxMacCoreGraphicsContext::DrawBitmap( const wxBitmap &bmp, wxDouble x, wxDo
if (EnsureIsValid())
{
CGRect r = CGRectMake( (CGFloat) x , (CGFloat) y , (CGFloat) w , (CGFloat) h );
wxOSXDrawNSImage( m_cgContext, &r, bmp.GetImage());
wxOSXDrawNSImage( m_cgContext, &r, bmp.GetNSImage());
}
#else
wxGraphicsBitmap bitmap = GetRenderer()->CreateBitmap(bmp);
@@ -2482,7 +2482,7 @@ void wxMacCoreGraphicsContext::DrawIcon( const wxIcon &icon, wxDouble x, wxDoubl
#if wxOSX_USE_COCOA
{
CGRect r = CGRectMake( (CGFloat) x , (CGFloat) y , (CGFloat) w , (CGFloat) h );
wxOSXDrawNSImage( m_cgContext, &r, icon.GetImage());
wxOSXDrawNSImage( m_cgContext, &r, icon.GetNSImage());
}
#endif