From 6e41f1f4579bf37a7e61a264f53c604dee8d1d69 Mon Sep 17 00:00:00 2001 From: Pascal Thomet Date: Wed, 17 Apr 2024 19:10:03 +0200 Subject: [PATCH] remoting/ API2 --- external/netImgui | 2 +- src/netimgui_remote_display/netimgui_remote_display.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/external/netImgui b/external/netImgui index 650ff9a4..30caeae9 160000 --- a/external/netImgui +++ b/external/netImgui @@ -1 +1 @@ -Subproject commit 650ff9a4abd750caeeddf6ea98f34908e40b2e23 +Subproject commit 30caeae95c1f741b8fb6eda60194531d81627dec diff --git a/src/netimgui_remote_display/netimgui_remote_display.cpp b/src/netimgui_remote_display/netimgui_remote_display.cpp index 6669a511..df9bbce8 100644 --- a/src/netimgui_remote_display/netimgui_remote_display.cpp +++ b/src/netimgui_remote_display/netimgui_remote_display.cpp @@ -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(); };