Skip to content

Commit 69fca68

Browse files
committed
High-DPI file picker in SaveReport executable
1 parent 4cd780e commit 69fca68

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/SaveReport_wWinMain.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ int WINAPI wWinMain(
1616
[[maybe_unused]] HINSTANCE hPrevInstance,
1717
[[maybe_unused]] PWSTR pCmdLine,
1818
[[maybe_unused]] int nCmdShow) {
19+
// Make the file picker high-DPI if supported
20+
SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2);
21+
1922
auto& gui = PlatformGUI::Get();
2023
const auto path = gui.GetExportFilePath();
2124
if (!path) {

0 commit comments

Comments
 (0)