Skip to content

Commit

Permalink
[Win32] Fix window size when aspect ratio is < 0 (#15941)
Browse files Browse the repository at this point in the history
  • Loading branch information
bslenul authored Nov 22, 2023
1 parent 39a4441 commit 3c25f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gfx/common/win32_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3c25f19

Please sign in to comment.