mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 04:28:04 +00:00
Use frame cache size in integer scaling instead of av info geometry (#17057)
This commit is contained in:
parent
d779654068
commit
7cb1543edd
@ -2354,12 +2354,8 @@ void video_viewport_get_scaled_integer(struct video_viewport *vp,
|
|||||||
int padding_y = 0;
|
int padding_y = 0;
|
||||||
float viewport_bias_x = settings->floats.video_viewport_bias_x;
|
float viewport_bias_x = settings->floats.video_viewport_bias_x;
|
||||||
float viewport_bias_y = settings->floats.video_viewport_bias_y;
|
float viewport_bias_y = settings->floats.video_viewport_bias_y;
|
||||||
/* Use system reported sizes as these define the
|
unsigned content_width = video_st->frame_cache_width;
|
||||||
* geometry for the "normal" case. */
|
unsigned content_height = video_st->frame_cache_height;
|
||||||
unsigned content_width =
|
|
||||||
video_st->av_info.geometry.base_width;
|
|
||||||
unsigned content_height =
|
|
||||||
video_st->av_info.geometry.base_height;
|
|
||||||
unsigned int rotation = retroarch_get_rotation();
|
unsigned int rotation = retroarch_get_rotation();
|
||||||
#if defined(RARCH_MOBILE)
|
#if defined(RARCH_MOBILE)
|
||||||
if (width < height)
|
if (width < height)
|
||||||
@ -2373,7 +2369,7 @@ void video_viewport_get_scaled_integer(struct video_viewport *vp,
|
|||||||
viewport_bias_y = 1.0 - viewport_bias_y;
|
viewport_bias_y = 1.0 - viewport_bias_y;
|
||||||
|
|
||||||
if (rotation % 2)
|
if (rotation % 2)
|
||||||
content_height = video_st->av_info.geometry.base_width;
|
content_height = content_width;
|
||||||
|
|
||||||
if (content_height == 0)
|
if (content_height == 0)
|
||||||
content_height = 1;
|
content_height = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user