Fixed the shim.
This commit is contained in:
11
src/86box.c
11
src/86box.c
@@ -1089,6 +1089,15 @@ pc_close(thread_t *ptr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
static void _ui_window_title(void *s)
|
||||||
|
{
|
||||||
|
ui_window_title((const char *) s);
|
||||||
|
free(s);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
pc_run(void)
|
pc_run(void)
|
||||||
{
|
{
|
||||||
@@ -1119,7 +1128,7 @@ pc_run(void)
|
|||||||
swprintf(temp, sizeof_w(temp), mouse_msg[!!mouse_capture], fps);
|
swprintf(temp, sizeof_w(temp), mouse_msg[!!mouse_capture], fps);
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
/* Needed due to modifying the UI on the non-main thread is a big no-no. */
|
/* Needed due to modifying the UI on the non-main thread is a big no-no. */
|
||||||
dispatch_async_f(dispatch_get_main_queue(), strdup(temp), _ui_window_title);
|
dispatch_async_f(dispatch_get_main_queue(), strdup((const char *) temp), _ui_window_title);
|
||||||
#else
|
#else
|
||||||
ui_window_title(temp);
|
ui_window_title(temp);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user