From 104afbd5f0217cf4299ca20c9bdeba0df8b6a9a6 Mon Sep 17 00:00:00 2001 From: Deve Date: Sun, 13 Jan 2019 22:10:03 +0100 Subject: [PATCH] Don't break early when finding best monitor mode --- lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp b/lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp index 04e5d2d3c..17b26d0d1 100644 --- a/lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp +++ b/lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp @@ -453,7 +453,7 @@ bool CIrrDeviceLinux::changeResolution() refresh_rate_new = (mode->dotClock * 1000.0) / (mode->hTotal * mode->vTotal); if (refresh_rate_new <= refresh_rate) - break; + continue; for (int j = 0; j < output->nmode; j++) {