diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-31 06:37:58 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-31 06:37:58 +0200 |
commit | eda27f03e5115f7d9b4d2f2061e03e0bbe517370 (patch) | |
tree | 7adc68f2d898e75b164df74b2345938e8e5e3767 /editor/imgui.cpp | |
parent | cf2e18fd4a11ad66eb2f1ce2b27dfe390fc47f8f (diff) |
fix msvc warning
Diffstat (limited to 'editor/imgui.cpp')
-rw-r--r-- | editor/imgui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/imgui.cpp b/editor/imgui.cpp index 45e8440e..50ce0628 100644 --- a/editor/imgui.cpp +++ b/editor/imgui.cpp @@ -273,7 +273,7 @@ void app::draw_lightmap_test(float main_menu_height) auto dpi = M->dpi_scale(); auto win_size = M->window_size(); - auto window_pos = ImVec2(win_size.x() - 512, (main_menu_height + 1) * dpi.y()); + auto window_pos = ImVec2((float)win_size.x() - 512, (main_menu_height + 1) * dpi.y()); auto& shader = M->lightmap_shader(); bool is_open = true; |