From 4a77801cb3d42087a668aebb0d83cf3744bacf67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Wed, 18 Jul 2018 22:33:20 +0100 Subject: [PATCH] Increase the allowed aspect ratio epsilon (#7775) --- src/openrct2-ui/UiContext.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index f7fbdc3c59..f91acbbc36 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -71,7 +71,6 @@ private: int32_t _height = 0; int32_t _scaleQuality = 0; - bool _resolutionsAllowAnyAspectRatio = false; std::vector _fsResolutions; bool _steamOverlayActive = false; @@ -699,7 +698,7 @@ private: if (mode.w > 0 && mode.h > 0) { float aspectRatio = (float)mode.w / mode.h; - if (_resolutionsAllowAnyAspectRatio || std::fabs(desktopAspectRatio - aspectRatio) < 0.0001f) + if (std::fabs(desktopAspectRatio - aspectRatio) < 0.1f) { resolutions.push_back({ mode.w, mode.h }); }