Skip to content

Commit

Permalink
Make Windows surface DPI aware (#1446)
Browse files Browse the repository at this point in the history
  • Loading branch information
Meakk authored May 31, 2024
1 parent 16fc29a commit 97978bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/main.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ int WINAPI wWinMain(HINSTANCE, HINSTANCE, LPWSTR, int)

std::setlocale(LC_ALL, "en_US.utf8");

#if WINVER >= 0x0605
SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2);
#endif

int argc;
wchar_t** wargv = CommandLineToArgvW(GetCommandLineW(), &argc);

Expand Down

0 comments on commit 97978bc

Please sign in to comment.