Skip to content

Commit

Permalink
NetImgui: Fight FrameBufferDisplayScale
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Apr 12, 2024
1 parent 9b3823b commit a6fd619
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,8 +44,7 @@ int main(int argc, char **argv)

runnerParams.callbacks.PostInit = [&pass_cmd_line_args_to_server]() {
pass_cmd_line_args_to_server();
auto fontRenderingScale = HelloImGui::GetRunnerParams()->dpiAwareParams.fontRenderingScale;
NetImguiServer::UI::SetFontDPIScale(fontRenderingScale);
NetImguiServer::UI::SetUseServerDisplayFramebufferScale(true);
};

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

0 comments on commit a6fd619

Please sign in to comment.