From bcfe2a6c4df5b79da494dfafb91f8f4d4aff5e19 Mon Sep 17 00:00:00 2001
From: FunkyFr3sh <cc.red.alert.1@googlemail.com>
Date: Thu, 17 Aug 2023 13:50:21 +0200
Subject: [PATCH] fix util_get_lowest_resolution

---
 src/utils.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/utils.c b/src/utils.c
index eb6a96f..c599efd 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -218,8 +218,8 @@ BOOL util_get_lowest_resolution(
             m.dmPelsHeight >= min_height &&
             m.dmPelsWidth <= max_width &&
             m.dmPelsHeight <= max_height &&
-            m.dmPelsWidth < lowest.cx &&
-            m.dmPelsHeight < lowest.cy)
+            m.dmPelsWidth <= lowest.cx &&
+            m.dmPelsHeight <= lowest.cy)
         {
             int res_ratio = (int)((((float)m.dmPelsWidth / m.dmPelsHeight) + 0.005f) * 10);