From 4f2bfc54760cbcbf142417b0bb24ddebf9ee4221 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Tue, 15 Feb 2022 19:38:28 +0100 Subject: [PATCH] Reviewed bug on `FindNearestConnectorMode()` --- src/rcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rcore.c b/src/rcore.c index f0652d3bb..44d65c7b7 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -6580,7 +6580,7 @@ static int FindNearestConnectorMode(const drmModeConnector *connector, uint widt TRACELOG(LOG_TRACE, "DISPLAY: DRM mode: %d %ux%u@%u %s", i, mode->hdisplay, mode->vdisplay, mode->vrefresh, (mode->flags & DRM_MODE_FLAG_INTERLACE) ? "interlaced" : "progressive"); - if ((mode->hdisplay < width) || (mode->vdisplay < height) | (mode->vrefresh < fps)) + if ((mode->hdisplay < width) || (mode->vdisplay < height) || (mode->vrefresh < fps)) { TRACELOG(LOG_TRACE, "DISPLAY: DRM mode is too small"); continue;