mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
RGUI integer scale fix (#17099)
This commit is contained in:
parent
73b9a5e899
commit
73fc26c132
@ -2372,6 +2372,9 @@ void video_viewport_get_scaled_integer(struct video_viewport *vp,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
content_width = (content_width == 4) ? video_st->av_info.geometry.base_width : content_width;
|
||||||
|
content_height = (content_height == 4) ? video_st->av_info.geometry.base_height : content_height;
|
||||||
|
|
||||||
if (!ydown)
|
if (!ydown)
|
||||||
viewport_bias_y = 1.0 - viewport_bias_y;
|
viewport_bias_y = 1.0 - viewport_bias_y;
|
||||||
|
|
||||||
@ -2481,7 +2484,10 @@ void video_viewport_get_scaled_integer(struct video_viewport *vp,
|
|||||||
uint8_t i = 0;
|
uint8_t i = 0;
|
||||||
|
|
||||||
/* Reset width to exact width */
|
/* Reset width to exact width */
|
||||||
content_width = (rotation % 2) ? video_st->frame_cache_height : video_st->frame_cache_width;
|
content_width = (rotation % 2)
|
||||||
|
? ((video_st->frame_cache_height == 4) ? video_st->av_info.geometry.base_height : video_st->frame_cache_height)
|
||||||
|
: ((video_st->frame_cache_width == 4) ? video_st->av_info.geometry.base_width : video_st->frame_cache_width);
|
||||||
|
|
||||||
overscale_w = (width / content_width) + !!(width % content_width);
|
overscale_w = (width / content_width) + !!(width % content_width);
|
||||||
|
|
||||||
/* Populate the ratios */
|
/* Populate the ratios */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user