mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-04 00:06:11 +00:00
fix dumb typo
This commit is contained in:
parent
b4e4af604e
commit
0c792898b8
@ -339,8 +339,8 @@ static void cocoagl_gfx_ctx_get_video_size(void *data, unsigned* width, unsigned
|
||||
#if defined(HAVE_COCOA)
|
||||
CocoaView *g_view = (CocoaView*)nsview_get_ptr();
|
||||
NSRect backingBounds = [g_view convertRectToBacking:[g_view bounds]];
|
||||
GLsizei backingPixelWidth = (GLSizei)(backingBounds.size.width),
|
||||
backingPixelHeight = (GLSizei)(backingBounds.size.height);
|
||||
GLsizei backingPixelWidth = (GLsizei)(backingBounds.size.width),
|
||||
backingPixelHeight = (GLsizei)(backingBounds.size.height);
|
||||
size = CGRectMake(0, 0, backingPixelWidth, backingPixelHeight);
|
||||
#else
|
||||
size = g_view.bounds;
|
||||
@ -386,9 +386,9 @@ static bool cocoagl_gfx_ctx_get_metrics(void *data, enum display_metric_types ty
|
||||
#if MAC_OS_X_VERSION_10_6
|
||||
float scale = screen.backingScaleFactor;
|
||||
#else
|
||||
float scale = 4.0f;
|
||||
float scale = 1.0f;
|
||||
#endif
|
||||
float dpi = (display_width/ physical_width) * 25.4f * scale;
|
||||
float dpi = (display_width/ physical_width) * 25.4f * scale * 3.0f;
|
||||
#elif defined(HAVE_COCOATOUCH)
|
||||
float scale = cocoagl_gfx_ctx_get_native_scale();
|
||||
CGRect screen_rect = [[UIScreen mainScreen] bounds];
|
||||
|
Loading…
x
Reference in New Issue
Block a user