diff --git a/ui/xemu-settings.c b/ui/xemu-settings.c index e5771e6ae5..71faba5c11 100644 --- a/ui/xemu-settings.c +++ b/ui/xemu-settings.c @@ -53,6 +53,7 @@ struct xemu_settings { // [display] int scale; int ui_scale; + int render_scale; // [input] char *controller_1_guid; @@ -115,8 +116,9 @@ struct config_offset_table { [XEMU_SETTINGS_AUDIO_USE_DSP] = { CONFIG_TYPE_BOOL, "audio", "use_dsp", offsetof(struct xemu_settings, use_dsp), { .default_bool = 0 } }, - [XEMU_SETTINGS_DISPLAY_SCALE] = { CONFIG_TYPE_ENUM, "display", "scale", offsetof(struct xemu_settings, scale), { .default_int = DISPLAY_SCALE_SCALE }, display_scale_map }, - [XEMU_SETTINGS_DISPLAY_UI_SCALE] = { CONFIG_TYPE_INT, "display", "ui_scale", offsetof(struct xemu_settings, ui_scale), { .default_int = 1 } }, + [XEMU_SETTINGS_DISPLAY_SCALE] = { CONFIG_TYPE_ENUM, "display", "scale", offsetof(struct xemu_settings, scale), { .default_int = DISPLAY_SCALE_SCALE }, display_scale_map }, + [XEMU_SETTINGS_DISPLAY_UI_SCALE] = { CONFIG_TYPE_INT, "display", "ui_scale", offsetof(struct xemu_settings, ui_scale), { .default_int = 1 } }, + [XEMU_SETTINGS_DISPLAY_RENDER_SCALE] = { CONFIG_TYPE_INT, "display", "render_scale", offsetof(struct xemu_settings, render_scale), { .default_int = 1 } }, [XEMU_SETTINGS_INPUT_CONTROLLER_1_GUID] = { CONFIG_TYPE_STRING, "input", "controller_1_guid", offsetof(struct xemu_settings, controller_1_guid), { .default_str = "" } }, [XEMU_SETTINGS_INPUT_CONTROLLER_2_GUID] = { CONFIG_TYPE_STRING, "input", "controller_2_guid", offsetof(struct xemu_settings, controller_2_guid), { .default_str = "" } }, diff --git a/ui/xemu-settings.h b/ui/xemu-settings.h index ea15828cd2..bd0042f01b 100644 --- a/ui/xemu-settings.h +++ b/ui/xemu-settings.h @@ -40,6 +40,7 @@ enum xemu_settings_keys { XEMU_SETTINGS_AUDIO_USE_DSP, XEMU_SETTINGS_DISPLAY_SCALE, XEMU_SETTINGS_DISPLAY_UI_SCALE, + XEMU_SETTINGS_DISPLAY_RENDER_SCALE, XEMU_SETTINGS_INPUT_CONTROLLER_1_GUID, XEMU_SETTINGS_INPUT_CONTROLLER_2_GUID, XEMU_SETTINGS_INPUT_CONTROLLER_3_GUID,