From 298714449a7c19c7a0f85d2f06305432f8a5251c Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Wed, 10 May 2023 07:29:55 +0200 Subject: Cleaning code and update CMI --- src/components/MoveTable.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/components/MoveTable.cpp') diff --git a/src/components/MoveTable.cpp b/src/components/MoveTable.cpp index 653356a..4878275 100644 --- a/src/components/MoveTable.cpp +++ b/src/components/MoveTable.cpp @@ -181,7 +181,7 @@ std::uint32_t MoveTable::UpdateMoves(CMI::HalfMove *m, std::uint32_t line, //---------- Variations ---------- if (m->GetVariations().size() > 0) { - line = DrawVariations(m, line, indent, move_bound, indent_black); + line = DrawVariations(m, line, indent, move_bound); } //---------- Mainline ---------- @@ -286,8 +286,7 @@ std::uint32_t MoveTable::DrawComment(CMI::HalfMove *m, std::uint32_t line, std::uint32_t MoveTable::DrawVariations(CMI::HalfMove *m, std::uint32_t line, std::uint32_t indent, - const Element &move_bound, - const char &indent_black) { + const Element &move_bound) { // Show three dots next to move if white turn if ((m->GetVariations().size() == 0) && !m->IsBlack()) { DRAW_DOTS(status->MarginBarWidth + status->MoveWidth * (indent + 1), -- cgit v1.2.3