Updated ImGui to 1.80

It works. It just works. Updating anything else usually takes hours and ImGui took literally 2 minutes. ocornut is amazing
This commit is contained in:
WerWolv
2021-01-21 23:09:43 +01:00
parent 0aacf1d07f
commit 7f4cc6e5c0
15 changed files with 5880 additions and 4484 deletions

View File

@@ -79,7 +79,11 @@ namespace hex {
if (!view->getWindowOpenState())
continue;
ImGui::SetNextWindowSizeConstraints(view->getMinSize(), view->getMaxSize());
auto minSize = view->getMinSize();
minSize.x *= this->m_globalScale;
minSize.y *= this->m_globalScale;
ImGui::SetNextWindowSizeConstraints(minSize, view->getMaxSize());
view->drawContent();
}
@@ -145,7 +149,7 @@ namespace hex {
if (ImGui::Begin("DockSpace", nullptr, windowFlags)) {
ImGui::PopStyleVar(2);
ImGui::DockSpace(ImGui::GetID("MainDock"), ImVec2(0.0f, 0.0f), ImGuiDockNodeFlags_None);
ImGui::DockSpace(ImGui::GetID("MainDock"), ImVec2(0.0f, 0.0f));
if (ImGui::BeginMenuBar()) {