mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
(OSX) Cleanup
This commit is contained in:
parent
14ec006412
commit
6a1d423700
@ -375,9 +375,7 @@ static void cocoagl_gfx_ctx_get_video_size(void *data, unsigned* width, unsigned
|
|||||||
#else
|
#else
|
||||||
RAScreen *screen = (RAScreen*)get_chosen_screen();
|
RAScreen *screen = (RAScreen*)get_chosen_screen();
|
||||||
#endif
|
#endif
|
||||||
CGRect size = screen.bounds;
|
|
||||||
float screenscale = cocoagl_gfx_ctx_get_native_scale();
|
float screenscale = cocoagl_gfx_ctx_get_native_scale();
|
||||||
|
|
||||||
#if defined(HAVE_COCOA)
|
#if defined(HAVE_COCOA)
|
||||||
CocoaView *g_view = (CocoaView*)nsview_get_ptr();
|
CocoaView *g_view = (CocoaView*)nsview_get_ptr();
|
||||||
#if MAC_OS_X_VERSION_10_7
|
#if MAC_OS_X_VERSION_10_7
|
||||||
@ -389,9 +387,9 @@ static void cocoagl_gfx_ctx_get_video_size(void *data, unsigned* width, unsigned
|
|||||||
GLsizei backingPixelWidth = CGRectGetWidth(cgrect);
|
GLsizei backingPixelWidth = CGRectGetWidth(cgrect);
|
||||||
GLsizei backingPixelHeight = CGRectGetHeight(cgrect);
|
GLsizei backingPixelHeight = CGRectGetHeight(cgrect);
|
||||||
#endif
|
#endif
|
||||||
size = CGRectMake(0, 0, backingPixelWidth, backingPixelHeight);
|
CGRect size = CGRectMake(0, 0, backingPixelWidth, backingPixelHeight);
|
||||||
#else
|
#else
|
||||||
size = g_view.bounds;
|
CGRect size = g_view.bounds;
|
||||||
#endif
|
#endif
|
||||||
*width = CGRectGetWidth(size) * screenscale;
|
*width = CGRectGetWidth(size) * screenscale;
|
||||||
*height = CGRectGetHeight(size) * screenscale;
|
*height = CGRectGetHeight(size) * screenscale;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user