diff --git a/gfx/drivers_context/cocoa_gl_ctx.m b/gfx/drivers_context/cocoa_gl_ctx.m index f1bb434328..8d38890fd2 100644 --- a/gfx/drivers_context/cocoa_gl_ctx.m +++ b/gfx/drivers_context/cocoa_gl_ctx.m @@ -455,8 +455,9 @@ static bool cocoagl_gfx_ctx_get_metrics(void *data, enum display_metric_types ty float physical_width = screen_rect.size.width * scale; float physical_height = screen_rect.size.height * scale; float dpi = 160 * scale; + unsigned idiom_type = UI_USER_INTERFACE_IDIOM(); - switch (UI_USER_INTERFACE_IDIOM()) + switch (idiom_type) { case -1: /* UIUserInterfaceIdiomUnspecified */ /* TODO */