mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-03 03:17:54 -06:00
rsx/overlay: Add resolution scale slider to home menu
This commit is contained in:
parent
c00fa2cc8c
commit
91c136b6d0
@ -152,16 +152,15 @@ namespace rsx
|
||||
home_menu_settings_video::home_menu_settings_video(s16 x, s16 y, u16 width, u16 height, bool use_separators, home_menu_page* parent)
|
||||
: home_menu_settings_page(x, y, width, height, use_separators, parent, get_localized_string(localized_string_id::HOME_MENU_SETTINGS_VIDEO))
|
||||
{
|
||||
add_unsigned_slider(&g_cfg.video.resolution_scale_percent, localized_string_id::HOME_MENU_SETTINGS_VIDEO_RESOLUTION_SCALE_PERCENT, "%", 25);
|
||||
|
||||
add_dropdown(&g_cfg.video.vsync, localized_string_id::HOME_MENU_SETTINGS_VIDEO_VSYNC);
|
||||
|
||||
add_dropdown(&g_cfg.video.frame_limit, localized_string_id::HOME_MENU_SETTINGS_VIDEO_FRAME_LIMIT);
|
||||
add_unsigned_slider(&g_cfg.video.anisotropic_level_override, localized_string_id::HOME_MENU_SETTINGS_VIDEO_ANISOTROPIC_OVERRIDE, "x", 2, {{0, "Auto"}}, {14});
|
||||
|
||||
add_dropdown(&g_cfg.video.output_scaling, localized_string_id::HOME_MENU_SETTINGS_VIDEO_OUTPUT_SCALING);
|
||||
if (g_cfg.video.renderer == video_renderer::vulkan && g_cfg.video.output_scaling == output_scaling_mode::fsr)
|
||||
{
|
||||
add_unsigned_slider(&g_cfg.video.rcas_sharpening_intensity, localized_string_id::HOME_MENU_SETTINGS_VIDEO_RCAS_SHARPENING, " %", 1);
|
||||
}
|
||||
add_unsigned_slider(&g_cfg.video.rcas_sharpening_intensity, localized_string_id::HOME_MENU_SETTINGS_VIDEO_RCAS_SHARPENING, " %", 1);
|
||||
|
||||
add_checkbox(&g_cfg.video.stretch_to_display_area, localized_string_id::HOME_MENU_SETTINGS_VIDEO_STRETCH_TO_DISPLAY);
|
||||
|
||||
|
||||
@ -222,6 +222,7 @@ enum class localized_string_id
|
||||
HOME_MENU_SETTINGS_VIDEO_ANISOTROPIC_OVERRIDE,
|
||||
HOME_MENU_SETTINGS_VIDEO_OUTPUT_SCALING,
|
||||
HOME_MENU_SETTINGS_VIDEO_RCAS_SHARPENING,
|
||||
HOME_MENU_SETTINGS_VIDEO_RESOLUTION_SCALE_PERCENT,
|
||||
HOME_MENU_SETTINGS_VIDEO_STRETCH_TO_DISPLAY,
|
||||
HOME_MENU_SETTINGS_VIDEO_STEREO_MODE,
|
||||
HOME_MENU_SETTINGS_INPUT,
|
||||
|
||||
@ -161,7 +161,7 @@ struct cfg_root : cfg::node
|
||||
cfg::_bool precise_zpass_count{ this, "Accurate ZCULL stats", true };
|
||||
cfg::_int<1, 8> consecutive_frames_to_draw{ this, "Consecutive Frames To Draw", 1, true};
|
||||
cfg::_int<1, 8> consecutive_frames_to_skip{ this, "Consecutive Frames To Skip", 1, true};
|
||||
cfg::_int<25, 800> resolution_scale_percent{ this, "Resolution Scale", 100, true };
|
||||
cfg::uint<25, 800> resolution_scale_percent{ this, "Resolution Scale", 100, true };
|
||||
cfg::uint<0, 16> anisotropic_level_override{ this, "Anisotropic Filter Override", 0, true };
|
||||
cfg::_float<-32, 32> texture_lod_bias{ this, "Texture LOD Bias Addend", 0, true };
|
||||
cfg::_int<1, 1024> min_scalable_dimension{ this, "Minimum Scalable Dimension", 16 };
|
||||
|
||||
@ -242,6 +242,7 @@ private:
|
||||
case localized_string_id::HOME_MENU_SETTINGS_VIDEO_ANISOTROPIC_OVERRIDE: return tr("Anisotropic Filter Override", "Video");
|
||||
case localized_string_id::HOME_MENU_SETTINGS_VIDEO_OUTPUT_SCALING: return tr("Output Scaling", "Video");
|
||||
case localized_string_id::HOME_MENU_SETTINGS_VIDEO_RCAS_SHARPENING: return tr("FidelityFX CAS Sharpening Intensity", "Video");
|
||||
case localized_string_id::HOME_MENU_SETTINGS_VIDEO_RESOLUTION_SCALE_PERCENT: return tr("Resolution Scale", "Video");
|
||||
case localized_string_id::HOME_MENU_SETTINGS_VIDEO_STRETCH_TO_DISPLAY: return tr("Stretch To Display Area", "Video");
|
||||
case localized_string_id::HOME_MENU_SETTINGS_VIDEO_STEREO_MODE: return tr("Stereo Mode", "Video");
|
||||
case localized_string_id::HOME_MENU_SETTINGS_INPUT: return tr("Input");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user