mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
(iOS) Build fix
This commit is contained in:
parent
39b88c885b
commit
be65663408
@ -50,6 +50,8 @@ static UIView *g_pause_indicator_view;
|
|||||||
|
|
||||||
static RAGameView* g_instance;
|
static RAGameView* g_instance;
|
||||||
|
|
||||||
|
#include "apple_gfx_context.c.inl"
|
||||||
|
|
||||||
@implementation RAGameView
|
@implementation RAGameView
|
||||||
+ (RAGameView*)get
|
+ (RAGameView*)get
|
||||||
{
|
{
|
||||||
@ -198,5 +200,3 @@ static void apple_gfx_ctx_flush_buffer(void);
|
|||||||
#ifdef HAVE_LOCATION
|
#ifdef HAVE_LOCATION
|
||||||
#include "apple_location.c.inl"
|
#include "apple_location.c.inl"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "apple_gfx_context.c.inl"
|
|
||||||
|
@ -71,14 +71,18 @@ static RAScreen* get_chosen_screen(void)
|
|||||||
|
|
||||||
static void apple_gfx_ctx_update(void)
|
static void apple_gfx_ctx_update(void)
|
||||||
{
|
{
|
||||||
|
#ifdef OSX
|
||||||
if (g_context)
|
if (g_context)
|
||||||
[g_context update];
|
[g_context update];
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void apple_gfx_ctx_flush_buffer(void)
|
static void apple_gfx_ctx_flush_buffer(void)
|
||||||
{
|
{
|
||||||
|
#ifdef OSX
|
||||||
if (g_context)
|
if (g_context)
|
||||||
[g_context flushBuffer];
|
[g_context flushBuffer];
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool apple_gfx_ctx_init(void *data)
|
static bool apple_gfx_ctx_init(void *data)
|
||||||
@ -230,15 +234,15 @@ static void apple_gfx_ctx_get_video_size(void *data, unsigned* width, unsigned*
|
|||||||
|
|
||||||
static void apple_gfx_ctx_update_window_title(void *data)
|
static void apple_gfx_ctx_update_window_title(void *data)
|
||||||
{
|
{
|
||||||
|
#ifdef OSX
|
||||||
static char buf[128], buf_fps[128];
|
static char buf[128], buf_fps[128];
|
||||||
bool got_text = gfx_get_fps(buf, sizeof(buf), g_settings.fps_show ? buf_fps : NULL, sizeof(buf_fps));
|
bool got_text = gfx_get_fps(buf, sizeof(buf), g_settings.fps_show ? buf_fps : NULL, sizeof(buf_fps));
|
||||||
#ifdef OSX
|
|
||||||
static const char* const text = buf; // < Can't access buf directly in the block
|
static const char* const text = buf; // < Can't access buf directly in the block
|
||||||
if (got_text)
|
if (got_text)
|
||||||
[[g_view window] setTitle:[NSString stringWithCString:text encoding:NSUTF8StringEncoding]];
|
[[g_view window] setTitle:[NSString stringWithCString:text encoding:NSUTF8StringEncoding]];
|
||||||
|
if (g_settings.fps_show)
|
||||||
|
msg_queue_push(g_extern.msg_queue, buf_fps, 1, 1);
|
||||||
#endif
|
#endif
|
||||||
if (g_settings.fps_show)
|
|
||||||
msg_queue_push(g_extern.msg_queue, buf_fps, 1, 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool apple_gfx_ctx_has_focus(void *data)
|
static bool apple_gfx_ctx_has_focus(void *data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user