From e1e991ce3edf9c68f72f3572ab8357abb930f48c Mon Sep 17 00:00:00 2001 From: past-due <30942300+past-due@users.noreply.github.com> Date: Tue, 9 Apr 2019 14:43:33 -0400 Subject: [PATCH] Fix: Use of wzGetMaximumDisplayScaleForWindowSize --- src/frontend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend.cpp b/src/frontend.cpp index ed2dae53f96..a3260ed0c60 100644 --- a/src/frontend.cpp +++ b/src/frontend.cpp @@ -1298,7 +1298,7 @@ bool runVideoOptionsMenu() else { // when live resolution changes are unavailable, check to see if the current display scale is supported at the desired resolution - unsigned int maxDisplayScale = wzGetMaximumDisplayScaleForWindowSize(current->width, current->height); + unsigned int maxDisplayScale = std::max(100u, wzGetMaximumDisplayScaleForWindowSize(current->width, current->height)); unsigned int current_displayScale = war_GetDisplayScale(); if (maxDisplayScale < current_displayScale) {