Skip to content

Commit

Permalink
netimgui_remote_display (server): disable call to SetWindowDPI
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Apr 10, 2024
1 parent 72d8c68 commit f8131ec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/netimgui_remote_display/netimgui_remote_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ int main(int argc, char **argv)
// HelloImGui::GetRunnerParams()->dpiAwareParams.DpiFontLoadingFactor();
float windowDPI = HelloImGui::GetRunnerParams()->dpiAwareParams.fontRenderingScale
* (float)(NetImguiServer::UI::kWindowDPIDefault); // 96
NetImguiServer::UI::SetWindowDPI((int)windowDPI);
//windowDPI = 48.f;
//printf("windowDPI: %f\n", windowDPI);
//NetImguiServer::UI::SetWindowDPI((int)windowDPI);

// See void FontCreationCallback(float PreviousDPIScale, float NewDPIScale)
// in SampleFontDPI.cpp ??

};

Expand Down

0 comments on commit f8131ec

Please sign in to comment.