mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +00:00
[Win32] Fix window size when aspect ratio is < 0 (#15941)
This commit is contained in:
parent
39a44414ea
commit
3c25f19d80
@ -932,7 +932,7 @@ static void win32_get_av_info_geometry(unsigned *width, unsigned *height)
|
||||
if (!video_st || runloop_st->flags & RUNLOOP_FLAG_FASTMOTION)
|
||||
return;
|
||||
|
||||
if (video_st->av_info.geometry.aspect_ratio)
|
||||
if (video_st->av_info.geometry.aspect_ratio > 0)
|
||||
*width = roundf(
|
||||
video_st->av_info.geometry.base_height
|
||||
* video_st->av_info.geometry.aspect_ratio);
|
||||
|
Loading…
x
Reference in New Issue
Block a user