aboutsummaryrefslogtreecommitdiff
path: root/src/components/MoveTable.cpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-05-10 07:29:55 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2023-05-10 07:29:55 +0200
commit298714449a7c19c7a0f85d2f06305432f8a5251c (patch)
tree0acd6328ac4d29baca47d1599dd3789d2a28a012 /src/components/MoveTable.cpp
parent9a632b7d41eb6e12b18fb4f2f0cee817e4958d2f (diff)
Cleaning code and update CMI
Diffstat (limited to 'src/components/MoveTable.cpp')
-rw-r--r--src/components/MoveTable.cpp5
1 files changed, 2 insertions, 3 deletions
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),