Make switch stop complaininig

This commit is contained in:
twinaphex 2016-01-15 14:08:38 +01:00
parent 5f513d2af0
commit 039e2acc49

View File

@ -41,6 +41,10 @@
#define GLFrameworkID CFSTR("com.apple.opengles") #define GLFrameworkID CFSTR("com.apple.opengles")
#define RAScreen UIScreen #define RAScreen UIScreen
#ifndef UIUserInterfaceIdiomTV
#define UIUserInterfaceIdiomTV 2
#endif
@interface EAGLContext (OSXCompat) @end @interface EAGLContext (OSXCompat) @end
@implementation EAGLContext (OSXCompat) @implementation EAGLContext (OSXCompat)
+ (void)clearCurrentContext { [EAGLContext setCurrentContext:nil]; } + (void)clearCurrentContext { [EAGLContext setCurrentContext:nil]; }
@ -431,12 +435,18 @@ static bool cocoagl_gfx_ctx_get_metrics(void *data, enum display_metric_types ty
switch (UI_USER_INTERFACE_IDIOM()) switch (UI_USER_INTERFACE_IDIOM())
{ {
case UIUserInterfaceIdiomUnspecified:
/* TODO */
break;
case UIUserInterfaceIdiomPad: case UIUserInterfaceIdiomPad:
dpi = 132 * scale; dpi = 132 * scale;
break; break;
case UIUserInterfaceIdiomPhone: case UIUserInterfaceIdiomPhone:
dpi = 163 * scale; dpi = 163 * scale;
break; break;
case UIUserInterfaceIdiomTV:
/* TODO */
break;
} }
#endif #endif