Expose ui scaling and orientation
This commit is contained in:
@@ -45,7 +45,7 @@ namespace OpenVulkano
|
||||
if (w > 0 && h > 0)
|
||||
io.DisplayFramebufferScale = ImVec2((float)display_w / (float)w, (float)display_h / (float)h);*/
|
||||
io.DisplaySize = { static_cast<float>(m_window->GetWidth()), static_cast<float>(m_window->GetHeight()) };
|
||||
io.DisplayFramebufferScale = { 1, 1 };
|
||||
io.DisplayFramebufferScale = { m_window->GetContentScale(), m_window->GetContentScale() };
|
||||
|
||||
//if (bd->WantUpdateMonitors)
|
||||
//ImGui_ImplGlfw_UpdateMonitors();
|
||||
@@ -68,4 +68,4 @@ namespace OpenVulkano
|
||||
io.BackendPlatformUserData = nullptr;
|
||||
io.BackendFlags = ImGuiBackendFlags_None;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user