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:
parent
7e61197516
commit
8bd7148b79
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ void VulkanWindow::render()
|
||||||
ImGui::SetCurrentContext(m_renderer->ctx);
|
ImGui::SetCurrentContext(m_renderer->ctx);
|
||||||
|
|
||||||
auto &io = ImGui::GetIO();
|
auto &io = ImGui::GetIO();
|
||||||
io.DisplaySize = ImVec2(width(), height());
|
io.DisplaySize = ImVec2(width() * screen()->devicePixelRatio(), height() * screen()->devicePixelRatio());
|
||||||
|
|
||||||
ImGui::NewFrame();
|
ImGui::NewFrame();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue