iOS fixes

This commit is contained in:
Stefan Csomor
2019-01-03 20:04:50 +01:00
parent e5e6ee7e77
commit 61c413928a
2 changed files with 2 additions and 2 deletions

View File

@@ -2718,6 +2718,7 @@ DECLARE_WXCOCOA_OBJC_CLASS(NSArray);
DECLARE_WXCOCOA_OBJC_CLASS(NSData);
DECLARE_WXCOCOA_OBJC_CLASS(NSMutableArray);
DECLARE_WXCOCOA_OBJC_CLASS(NSString);
DECLARE_WXCOCOA_OBJC_CLASS(NSObject);
#if wxOSX_USE_COCOA
@@ -2739,7 +2740,6 @@ DECLARE_WXCOCOA_OBJC_CLASS(NSMenu);
DECLARE_WXCOCOA_OBJC_CLASS(NSMenuExtra);
DECLARE_WXCOCOA_OBJC_CLASS(NSMenuItem);
DECLARE_WXCOCOA_OBJC_CLASS(NSNotification);
DECLARE_WXCOCOA_OBJC_CLASS(NSObject);
DECLARE_WXCOCOA_OBJC_CLASS(NSPanel);
DECLARE_WXCOCOA_OBJC_CLASS(NSResponder);
DECLARE_WXCOCOA_OBJC_CLASS(NSScrollView);

View File

@@ -257,7 +257,7 @@ wxBitmap wxWindowDCImpl::DoGetAsBitmap(const wxRect *subrect) const
CGContextTranslateCTM( context, -subrect->x, -subrect->y ) ;
UIGraphicsPushContext(context);
[ (NSView*) m_window->GetHandle() drawRect:CGRectMake(left, top, width, height ) ];
[ (UIView*) m_window->GetHandle() drawRect:CGRectMake(left, top, width, height ) ];
UIGraphicsPopContext();
CGContextRestoreGState(context);