mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Go through ui_window_t function pointer
This commit is contained in:
parent
77d5de3b4c
commit
c4cea05399
@ -412,17 +412,18 @@ static void cocoagl_gfx_ctx_get_video_size(void *data, unsigned* width, unsigned
|
||||
|
||||
static void cocoagl_gfx_ctx_update_window_title(void *data)
|
||||
{
|
||||
static char buf_fps[128] = {0};
|
||||
settings_t *settings = config_get_ptr();
|
||||
static char buf_fps[128] = {0};
|
||||
settings_t *settings = config_get_ptr();
|
||||
#if defined(HAVE_COCOA)
|
||||
static char buf[128] = {0};
|
||||
static char buf[128] = {0};
|
||||
ui_window_cocoa_t view;
|
||||
const ui_window_t *window = ui_companion_driver_get_window_ptr();
|
||||
|
||||
view.data = (CocoaView*)nsview_get_ptr();
|
||||
|
||||
if (video_monitor_get_fps(buf, sizeof(buf),
|
||||
if (window && video_monitor_get_fps(buf, sizeof(buf),
|
||||
buf_fps, sizeof(buf_fps)))
|
||||
ui_window_cocoa_set_title(&view, buf);
|
||||
window->set_title(&view, buf);
|
||||
#endif
|
||||
if (settings->fps_show)
|
||||
runloop_msg_queue_push(buf_fps, 1, 1, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user