summaryrefslogtreecommitdiffhomepage
path: root/editor/imgui-editors.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-25 07:28:53 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-25 07:28:53 +0100
commit776f0a7b894d99d2621b96de62e1f15e17d049a0 (patch)
tree26a1a2ccb2c612d44a28a924af55ef53a2ba6fff /editor/imgui-editors.cpp
parent2b69f1bd79e2b94bb27d0c5729585b0e3a0b092e (diff)
a
Diffstat (limited to 'editor/imgui-editors.cpp')
-rw-r--r--editor/imgui-editors.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/imgui-editors.cpp b/editor/imgui-editors.cpp
index 1c15989f..ad71ea0a 100644
--- a/editor/imgui-editors.cpp
+++ b/editor/imgui-editors.cpp
@@ -263,9 +263,11 @@ void app::draw_editor_pane(float main_menu_height)
ImGuiWindowFlags_NoSavedSettings);
const auto b = push_id("editor");
+ float width = 425 * dpi.x();
+
ImGui::SetNextWindowPos({0, main_menu_height+style.WindowPadding.y});
ImGui::SetNextFrameWantCaptureKeyboard(false);
- ImGui::SetNextWindowSize({425 * dpi[0], window_size[1]-main_menu_height - style.WindowPadding.y});
+ ImGui::SetNextWindowSize({width, window_size.y()-main_menu_height - style.WindowPadding.y});
if (auto b = begin_window({}, nullptr, igwf))
{
const auto b2 = push_id("editor-pane");
@@ -281,7 +283,7 @@ void app::draw_editor_pane(float main_menu_height)
else if (wa)
impl_draw_editor_scenery_pane<wall_editor>(*wa, dpi);
else if (_editor->mode() == editor_mode::tests)
- draw_tests_pane();
+ draw_tests_pane(width);
}
}
}