diff options
Diffstat (limited to 'editor/imgui.cpp')
-rw-r--r-- | editor/imgui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/imgui.cpp b/editor/imgui.cpp index 49d65b2e..acb0e3b0 100644 --- a/editor/imgui.cpp +++ b/editor/imgui.cpp @@ -164,7 +164,8 @@ void app::draw_editor_pane(tile_editor& type, float main_menu_height) snprintf(buf, sizeof(buf), "##item_%zu", i); const auto uv = v->texcoords_for_id(i); - ImGui::ImageButton(buf, (void*)&v->texture(), {TILE_SIZE[0]/2, TILE_SIZE[1]/2}, + ImGui::ImageButton(buf, (void*)&v->texture(), + { TILE_SIZE[0]*.5f, TILE_SIZE[1]*.5f }, { uv[3][0], uv[3][1] }, { uv[0][0], uv[0][1] }); if (ed) { |