summaryrefslogtreecommitdiffhomepage
path: root/editor/imgui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/imgui.cpp')
-rw-r--r--editor/imgui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/imgui.cpp b/editor/imgui.cpp
index c26e9987..356caaf4 100644
--- a/editor/imgui.cpp
+++ b/editor/imgui.cpp
@@ -156,7 +156,8 @@ void app::draw_inspector()
auto [c, t] = w[*cursor.tile];
if (auto s = t.scenery())
{
- ImGui::SetNextWindowSize({400, 0});
+ auto dpi = M->dpi_scale();
+ ImGui::SetNextWindowSize({300*dpi[0], 0});
auto b = begin_window("inspector"_s);
entities::inspect_type(s);
}