This commit is contained in:
twinaphex 2020-02-13 18:42:11 +01:00
parent 108643473d
commit bf35c1faf5

View File

@ -21648,12 +21648,10 @@ void video_viewport_get_scaled_integer(struct video_viewport *vp,
unsigned base_width;
/* Use system reported sizes as these define the
* geometry for the "normal" case. */
unsigned base_height;
unsigned base_height = video_driver_av_info.geometry.base_height;
if (retroarch_get_rotation() % 2)
base_height = video_driver_av_info.geometry.base_width;
else
base_height = video_driver_av_info.geometry.base_height;
if (base_height == 0)
base_height = 1;