Skip to content

Commit

Permalink
Call NetImguiServer::UI::SetWindowDPISizeFactor
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Apr 12, 2024
1 parent 0da5f1f commit a2f4664
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/netimgui_remote_display/netimgui_remote_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ int main(int argc, char **argv)
runnerParams.callbacks.PostInit = [&pass_cmd_line_args_to_server]() {
pass_cmd_line_args_to_server();
NetImguiServer::UI::SetUseServerDisplayDPISettings(true);
float windowDPISizeFactor = HelloImGui::GetRunnerParams()->dpiAwareParams.dpiWindowSizeFactor;
NetImguiServer::UI::SetWindowDPISizeFactor(windowDPISizeFactor);
};

runnerParams.callbacks.PreNewFrame = []() {
Expand Down

0 comments on commit a2f4664

Please sign in to comment.