mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-31 08:33:40 +00:00
Add RARCH_CMD_RESIZE_WINDOWED_SCALE
This commit is contained in:
parent
8ae32d6bd6
commit
9b4c794261
@ -158,6 +158,7 @@ enum basic_event
|
||||
RARCH_CMD_DRIVERS_DEINIT,
|
||||
RARCH_CMD_DRIVERS_INIT,
|
||||
RARCH_CMD_AUDIO_REINIT,
|
||||
RARCH_CMD_RESIZE_WINDOWED_SCALE,
|
||||
RARCH_CMD_TEMPORARY_CONTENT_DEINIT,
|
||||
RARCH_CMD_SUBSYSTEM_FULLPATHS_DEINIT,
|
||||
RARCH_CMD_LOG_FILE_DEINIT,
|
||||
@ -516,6 +517,10 @@ struct global
|
||||
char bps_name[PATH_MAX];
|
||||
char ips_name[PATH_MAX];
|
||||
|
||||
struct
|
||||
{
|
||||
unsigned windowed_scale;
|
||||
} pending;
|
||||
|
||||
struct
|
||||
{
|
||||
|
11
retroarch.c
11
retroarch.c
@ -2203,6 +2203,17 @@ bool rarch_main_command(unsigned cmd)
|
||||
#endif
|
||||
main_state(cmd);
|
||||
break;
|
||||
case RARCH_CMD_RESIZE_WINDOWED_SCALE:
|
||||
if (g_extern.pending.windowed_scale != 0)
|
||||
{
|
||||
g_settings.video.scale = g_extern.pending.windowed_scale;
|
||||
|
||||
if (!g_settings.video.fullscreen)
|
||||
rarch_main_command(RARCH_CMD_REINIT);
|
||||
|
||||
g_extern.pending.windowed_scale = 0;
|
||||
}
|
||||
break;
|
||||
case RARCH_CMD_MENU_TOGGLE:
|
||||
if (g_extern.is_menu)
|
||||
rarch_main_set_state(RARCH_ACTION_STATE_MENU_RUNNING_FINISHED);
|
||||
|
Loading…
x
Reference in New Issue
Block a user