mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-03 10:13:11 +00:00
Cleanup
This commit is contained in:
parent
9a38ec28b0
commit
14ec006412
@ -380,20 +380,19 @@ static void cocoagl_gfx_ctx_get_video_size(void *data, unsigned* width, unsigned
|
||||
|
||||
#if defined(HAVE_COCOA)
|
||||
CocoaView *g_view = (CocoaView*)nsview_get_ptr();
|
||||
#if MAC_OS_X_VERSION_10_7
|
||||
#if MAC_OS_X_VERSION_10_7
|
||||
NSRect backingBounds = [g_view convertRectToBacking:[g_view bounds]];
|
||||
GLsizei backingPixelWidth = (GLsizei)(backingBounds.size.width),
|
||||
backingPixelHeight = (GLsizei)(backingBounds.size.height);
|
||||
#else
|
||||
GLsizei backingPixelWidth = (GLsizei)(backingBounds.size.width);
|
||||
GLsizei backingPixelHeight = (GLsizei)(backingBounds.size.height);
|
||||
#else
|
||||
CGRect cgrect = NSRectToCGRect([g_view frame]);
|
||||
GLsizei backingPixelWidth = CGRectGetWidth(cgrect);
|
||||
GLsizei backingPixelHeight = CGRectGetHeight(cgrect);
|
||||
#endif
|
||||
#endif
|
||||
size = CGRectMake(0, 0, backingPixelWidth, backingPixelHeight);
|
||||
#else
|
||||
size = g_view.bounds;
|
||||
#endif
|
||||
|
||||
*width = CGRectGetWidth(size) * screenscale;
|
||||
*height = CGRectGetHeight(size) * screenscale;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user