mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
This is still necessary unfortunately
This commit is contained in:
parent
9f27b9b56d
commit
fcc8c5dae7
@ -376,9 +376,11 @@ static void cocoagl_gfx_ctx_get_video_size(void *data, unsigned* width, unsigned
|
||||
GLsizei backingPixelWidth, backingPixelHeight;
|
||||
CocoaView *g_view = (CocoaView*)nsview_get_ptr();
|
||||
CGRect cgrect = NSRectToCGRect([g_view frame]);
|
||||
#if MAC_OS_X_VERSION_10_7
|
||||
SEL selector = NSSelectorFromString(BOXSTRING("convertRectToBacking:"));
|
||||
if ([g_view respondsToSelector:selector])
|
||||
cgrect = NSRectToCGRect([g_view convertRectToBacking:[g_view bounds]]);
|
||||
#endif
|
||||
backingPixelWidth = CGRectGetWidth(cgrect);
|
||||
backingPixelHeight = CGRectGetHeight(cgrect);
|
||||
size = CGRectMake(0, 0, backingPixelWidth, backingPixelHeight);
|
||||
|
Loading…
x
Reference in New Issue
Block a user