mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Make switch stop complaininig
This commit is contained in:
parent
5f513d2af0
commit
039e2acc49
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user