From 3c25f19d80480ba94d545323ca1ec92d5bb6bb64 Mon Sep 17 00:00:00 2001 From: Bobby Smith <33353403+bslenul@users.noreply.github.com> Date: Wed, 22 Nov 2023 19:14:48 +0100 Subject: [PATCH] [Win32] Fix window size when aspect ratio is < 0 (#15941) --- gfx/common/win32_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/common/win32_common.c b/gfx/common/win32_common.c index 96b4d227f6..e22f266d08 100644 --- a/gfx/common/win32_common.c +++ b/gfx/common/win32_common.c @@ -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);