diff --git a/parts/mdl/vulkanwindow.cpp b/parts/mdl/vulkanwindow.cpp index 251e932..363fa32 100644 --- a/parts/mdl/vulkanwindow.cpp +++ b/parts/mdl/vulkanwindow.cpp @@ -102,7 +102,7 @@ void VulkanWindow::render() ImGui::SetCurrentContext(m_renderer->ctx); auto &io = ImGui::GetIO(); - io.DisplaySize = ImVec2(width(), height()); + io.DisplaySize = ImVec2(width() * screen()->devicePixelRatio(), height() * screen()->devicePixelRatio()); ImGui::NewFrame();