(Cocoa) Store idiom type inside unsigned variable

This commit is contained in:
twinaphex 2016-05-02 14:53:23 +02:00
parent 78c13f59d0
commit 53fc458795

View File

@ -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 */