mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(iOS) Estimated FPS monitor should work now
This commit is contained in:
parent
a2d82612ad
commit
522c65e27f
@ -102,11 +102,11 @@ void apple_rarch_exited(void)
|
||||
case NSOtherMouseDragged:
|
||||
{
|
||||
NSPoint pos;
|
||||
// Relative
|
||||
/* Relative */
|
||||
apple->mouse_x = event.deltaX;
|
||||
apple->mouse_y = event.deltaY;
|
||||
|
||||
// Absolute
|
||||
/* Absolute */
|
||||
pos = [[RAGameView get] convertPoint:[event locationInWindow] fromView:nil];
|
||||
apple->touches[0].screen_x = pos.x;
|
||||
apple->touches[0].screen_y = pos.y;
|
||||
|
@ -275,16 +275,16 @@ static void apple_gfx_ctx_get_video_size(void *data, unsigned* width, unsigned*
|
||||
|
||||
static void apple_gfx_ctx_update_window_title(void *data)
|
||||
{
|
||||
#ifdef OSX
|
||||
static char buf[128], buf_fps[128];
|
||||
bool got_text = video_monitor_get_fps(buf, sizeof(buf),
|
||||
buf_fps, sizeof(buf_fps));
|
||||
static const char* const text = buf; /* < Can't access buffer directly in the block */
|
||||
#ifdef OSX
|
||||
if (got_text)
|
||||
[[g_view window] setTitle:[NSString stringWithCString:text encoding:NSUTF8StringEncoding]];
|
||||
#endif
|
||||
if (g_settings.fps_show)
|
||||
msg_queue_push(g_runloop.msg_queue, buf_fps, 1, 1);
|
||||
#endif
|
||||
}
|
||||
|
||||
static bool apple_gfx_ctx_has_focus(void *data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user