mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Merge pull request #13921 from nfp0/menu-increase-shader-scale-max-value
menu - Increase shader scale max value
This commit is contained in:
commit
1b8c1faa8a
@ -306,9 +306,10 @@ static int action_left_shader_scale_pass(unsigned type, const char *label,
|
||||
if (!shader_pass)
|
||||
return menu_cbs_exit();
|
||||
|
||||
/* A 20x scale is used to support scaling handheld border shaders up to 8K resolutions */
|
||||
current_scale = shader_pass->fbo.scale_x;
|
||||
delta = 5;
|
||||
current_scale = (current_scale + delta) % 6;
|
||||
delta = 20;
|
||||
current_scale = (current_scale + delta) % 21;
|
||||
|
||||
shader_pass->fbo.valid = current_scale;
|
||||
shader_pass->fbo.scale_x = current_scale;
|
||||
|
@ -348,9 +348,10 @@ static int action_right_shader_scale_pass(unsigned type, const char *label,
|
||||
if (!shader_pass)
|
||||
return menu_cbs_exit();
|
||||
|
||||
/* A 20x scale is used to support scaling handheld border shaders up to 8K resolutions */
|
||||
current_scale = shader_pass->fbo.scale_x;
|
||||
delta = 1;
|
||||
current_scale = (current_scale + delta) % 6;
|
||||
current_scale = (current_scale + delta) % 21;
|
||||
|
||||
shader_pass->fbo.valid = current_scale;
|
||||
shader_pass->fbo.scale_x = shader_pass->fbo.scale_y = current_scale;
|
||||
|
Loading…
x
Reference in New Issue
Block a user