Skip to content

Commit

Permalink
remoting/ API2
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Apr 17, 2024
1 parent 8fb77bc commit 6e41f1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/netimgui_remote_display/netimgui_remote_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,11 @@ int main(int argc, char **argv)

runnerParams.callbacks.PostInit = [&pass_cmd_line_args_to_server]() {
pass_cmd_line_args_to_server();
// KK3 set font scale here
NetImguiServer::UI::SetUseServerDPISettings(HelloImGui::DpiFontLoadingFactor());
};

runnerParams.callbacks.PreNewFrame = []() {
// Request each client to update their drawing content
NetImguiServer::UI::SetUseServerDPISettings(HelloImGui::DpiFontLoadingFactor());
NetImguiServer::App::UpdateRemoteContent();
};

Expand Down

0 comments on commit 6e41f1f

Please sign in to comment.