Set dpi scaling to solve display errot when using high dpi displayer

This commit is contained in:
dijunkun
2024-07-01 16:31:39 +08:00
parent 7f25f7426c
commit e63b384d1e
3 changed files with 14 additions and 5 deletions

View File

@@ -4,15 +4,10 @@ int Render::MainWindow() {
ImGui::SetNextWindowPos(ImVec2(0, 0), ImGuiCond_Always);
ImGui::SetNextWindowSize(ImVec2(main_window_width_, main_window_height_),
ImGuiCond_Always);
ImGui::Begin("Render", nullptr,
ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoTitleBar |
ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar);
MenuWindow();
LocalWindow();
RemoteWindow();
ImGui::End();
return 0;
}