From 500cbe2ebfbbd4e9b36bcee3979a45556c5f1e84 Mon Sep 17 00:00:00 2001 From: Deve Date: Fri, 9 Oct 2015 13:47:19 +0200 Subject: [PATCH] Allow to use 1280x720 resolution. This is quite popular resolution and it is a kind of standard. Even the most of new monitors have it because it has the same porportion as 1920x1080. And it looks much better than 1024x768 expanded to 16:9 proportionos ;) I also didn't notice any issues in gui during using it. --- src/graphics/irr_driver.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/graphics/irr_driver.cpp b/src/graphics/irr_driver.cpp index 543c423e3..e7362930d 100644 --- a/src/graphics/irr_driver.cpp +++ b/src/graphics/irr_driver.cpp @@ -96,6 +96,7 @@ GPUTimer m_perf_query[Q_LAST]; const int MIN_SUPPORTED_HEIGHT = 768; const int MIN_SUPPORTED_WIDTH = 1024; +const bool ALLOW_1280_X_720 = true; // ---------------------------------------------------------------------------- /** The constructor creates the irrlicht device. It first creates a NULL @@ -327,8 +328,9 @@ void IrrDriver::createListOfVideoModes() { const int w = modes->getVideoModeResolution(i).Width; const int h = modes->getVideoModeResolution(i).Height; - if ( (h < MIN_SUPPORTED_HEIGHT || w < MIN_SUPPORTED_WIDTH) && - ( ! (h==600 && w==800 && UserConfigParams::m_artist_debug_mode) ) ) + if ((h < MIN_SUPPORTED_HEIGHT || w < MIN_SUPPORTED_WIDTH) && + (!(h==600 && w==800 && UserConfigParams::m_artist_debug_mode) && + (!(h==720 && w==1280 && ALLOW_1280_X_720 == true)))) continue; VideoMode mode(w, h);