diff options
| author | raysan5 <[email protected]> | 2022-02-15 19:38:28 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2022-02-15 19:38:28 +0100 |
| commit | 4f2bfc54760cbcbf142417b0bb24ddebf9ee4221 (patch) | |
| tree | 844078b2c1c0ee7e4a1015042ee0376e6fce7909 /src | |
| parent | 4815065c47da8e4cbab2600a247f34ed32d538f1 (diff) | |
| download | raylib-4f2bfc54760cbcbf142417b0bb24ddebf9ee4221.tar.gz raylib-4f2bfc54760cbcbf142417b0bb24ddebf9ee4221.zip | |
Reviewed bug on `FindNearestConnectorMode()`
Diffstat (limited to 'src')
| -rw-r--r-- | src/rcore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rcore.c b/src/rcore.c index f0652d3b..44d65c7b 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; |
