Skip to content

Commit

Permalink
Fix: Use of wzGetMaximumDisplayScaleForWindowSize
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Apr 11, 2019
1 parent 39aeb51 commit e1e991c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend.cpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit e1e991c

Please sign in to comment.