Merge pull request #13921 from nfp0/menu-increase-shader-scale-max-value

menu - Increase shader scale max value
This commit is contained in:
LibretroAdmin 2022-05-12 00:54:33 +02:00 committed by GitHub
commit 1b8c1faa8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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;