Integer scale 'smart' tweak (#17139)

This commit is contained in:
sonninnos 2024-10-31 02:56:56 +02:00 committed by GitHub
parent 8790178ae2
commit cbafa3b513
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2453,7 +2453,7 @@ void video_viewport_get_scaled_integer(struct video_viewport *vp,
max_scale_h = overscale_h;
/* Overscale will be too much even if it is closer */
else if ((scale_h_diff < -155 && scale_h_diff > (int)-content_height / 2)
|| (scale_h_diff < -20 && scale_h_diff > -50)
|| (scale_h_diff < -30 && scale_h_diff > -50)
|| (scale_h_diff > 20))
max_scale_h = underscale_h;