Skip to content

Commit

Permalink
fix for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
Deamon87 committed Aug 28, 2022
1 parent 0f2ea1a commit 0c791d6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <iostream>
#include <csignal>
#include <exception>
#include <algorithm>
#include <GLFW/glfw3.h>

#include "../wowViewerLib/src/gapi/interface/IDevice.h"
Expand Down Expand Up @@ -453,13 +454,13 @@ int main(){
std::cout << "monitor diag " << monitorDiag << "''" << std::endl;

if (monitorDiag > 20) {
uiScale = std::min(uiScale, 2.0f);
uiScale = std::min<float>(uiScale, 2.0f);
}
if (monitorDiag > 25) {
uiScale = std::min(uiScale, 1.5f);
uiScale = std::min<float>(uiScale, 1.5f);
}

std::cout << "corrected uiScale for monitor dimentions = " << uiScale << std::endl;
std::cout << "corrected uiScale for monitor dimensions = " << uiScale << std::endl;
}

frontendUI->setUIScale(uiScale);
Expand Down

0 comments on commit 0c791d6

Please sign in to comment.