summaryrefslogtreecommitdiffhomepage
path: root/editor/imgui.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-29 13:30:46 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-29 13:30:46 +0100
commitaacb9ff41b5872e4de7d97e04a70c21e63fd7465 (patch)
tree3c5baa45fb365206ca144e50d1d31706f5e2f604 /editor/imgui.cpp
parent4d696c1540ad2c2abf2fabc8810fccf60a1f626c (diff)
editor/imgui: fix hidpi for panes
Diffstat (limited to 'editor/imgui.cpp')
-rw-r--r--editor/imgui.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/editor/imgui.cpp b/editor/imgui.cpp
index 2920bae7..15f6bc37 100644
--- a/editor/imgui.cpp
+++ b/editor/imgui.cpp
@@ -160,15 +160,14 @@ void app::draw_editor_pane(float main_menu_height)
if (const auto flags = ImGuiWindowFlags_(ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoSavedSettings);
auto b = begin_window({}, flags))
{
- ImGui::SetWindowFontScale(dpi);
- if (auto b = begin_list_box("##atlases", {-FLT_MIN, -1}))
- {
- if (ed)
- for (const auto& [k, v] : *ed)
- draw_editor_tile_pane_atlas(*ed, k, v);
- else if (sc)
- draw_editor_scenery_pane(*sc);
- }
+ if (auto b = begin_list_box("##atlases", {-FLT_MIN, -1}))
+ {
+ if (ed)
+ for (const auto& [k, v] : *ed)
+ draw_editor_tile_pane_atlas(*ed, k, v);
+ else if (sc)
+ draw_editor_scenery_pane(*sc);
+ }
}
}
}