1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-21 03:57:44 +00:00

Fix ImGui using the wrong display size

This commit is contained in:
Joshua Goins 2023-12-09 15:06:16 -05:00
parent 7e61197516
commit 8bd7148b79

View file

@ -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();