Skip to content

Commit

Permalink
Windows: Add option to ignore HIDPI and disable scaling
Browse files Browse the repository at this point in the history
NOTE: this drops WinXP support
  • Loading branch information
black-sliver committed Sep 10, 2024
1 parent 2380d41 commit 8625953
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/poptracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ PopTracker::PopTracker(int argc, char** argv, bool cli, const json& args)
_config["software_renderer"] = false;
if (_config["enable_screensaver"].type() != json::value_t::boolean)
_config["enable_screensaver"] = true;
if (_config["ignore_hidpi"].type() != json::value_t::boolean)
_config["ignore_hidpi"] = false;

if (!cli) {
// enable logging
Expand All @@ -199,6 +201,10 @@ PopTracker::PopTracker(int argc, char** argv, bool cli, const json& args)
printf("%s %s\n", APPNAME, VERSION_STRING);
}
}
#if defined _WIN32 || defined WIN32
if (_config["ignore_hidpi"] == true)
SetProcessDPIAware();
#endif

#ifndef WITHOUT_UPDATE_CHECK
if (!Dlg::hasGUI()) {
Expand Down

0 comments on commit 8625953

Please sign in to comment.