summaryrefslogtreecommitdiffhomepage
path: root/editor/imgui.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-02-23 18:05:43 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-02-23 18:05:43 +0100
commitbad2f1a530b82879dab4c4cff065aab6b1f711c8 (patch)
treec0cd3a5f11f837497c00814267e59d07fa96b706 /editor/imgui.cpp
parentecacc4e197eb8da6c311dad6e37330bcbbfef86e (diff)
a
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);
}