(iOS) Estimated FPS monitor should work now

This commit is contained in:
Twinaphex 2015-03-11 18:30:14 +01:00
parent a2d82612ad
commit 522c65e27f
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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)