Hide mouse cursor after RETRO_ENVIRONMENT_SET_SYSTEM_AV_INFO in fullscreen

This commit is contained in:
Tatsuya79 2018-01-01 16:44:55 +01:00 committed by GitHub
parent 515918f80c
commit 10c6ef6f1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -304,6 +304,12 @@ static bool driver_update_system_av_info(const struct retro_system_av_info *info
command_event(CMD_EVENT_RECORD_INIT, NULL);
}
/* Hide mouse cursor in fullscreen after
* a RETRO_ENVIRONMENT_SET_SYSTEM_AV_INFO call. */
settings_t *settings = config_get_ptr();
if (settings->bools.video_fullscreen)
video_driver_hide_mouse();
return true;
}