mirror of
https://github.com/libretro/RetroArch
synced 2025-01-27 21:35:25 +00:00
Shut up some warnings
This commit is contained in:
parent
f95759c39b
commit
f62ad35238
@ -1958,7 +1958,7 @@ bool command_event(enum event_command cmd, void *data)
|
||||
video_driver_reinit();
|
||||
/* Poll input to avoid possibly stale data to corrupt things. */
|
||||
input_driver_poll();
|
||||
command_event(CMD_EVENT_GAME_FOCUS_TOGGLE, (void *) -1);
|
||||
command_event(CMD_EVENT_GAME_FOCUS_TOGGLE, (void*)(intptr_t)-1);
|
||||
#ifdef HAVE_MENU
|
||||
menu_display_set_framebuffer_dirty_flag();
|
||||
if (menu_driver_ctl(RARCH_MENU_CTL_IS_ALIVE, NULL))
|
||||
@ -2607,7 +2607,7 @@ bool command_event(enum event_command cmd, void *data)
|
||||
case CMD_EVENT_GAME_FOCUS_TOGGLE:
|
||||
{
|
||||
static bool game_focus_state = false;
|
||||
long int mode = (long int)data;
|
||||
intptr_t mode = (intptr_t)data;
|
||||
|
||||
/* mode = -1: restores current game focus state
|
||||
* mode = 1: force set game focus, instead of toggling
|
||||
|
@ -840,7 +840,7 @@ static enum runloop_state runloop_check_state(
|
||||
return RUNLOOP_STATE_SLEEP;
|
||||
|
||||
if (runloop_cmd_triggered(trigger_input, RARCH_GAME_FOCUS_TOGGLE))
|
||||
command_event(CMD_EVENT_GAME_FOCUS_TOGGLE, NULL);
|
||||
command_event(CMD_EVENT_GAME_FOCUS_TOGGLE, (void*)(intptr_t)0);
|
||||
|
||||
#ifdef HAVE_MENU
|
||||
if (menu_event_keyboard_is_set(RETROK_F1) == 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user