From 2e66777ba09de202162eb5aa8f015def75e13fa8 Mon Sep 17 00:00:00 2001 From: casey langen Date: Sat, 6 Jan 2018 15:08:23 -0800 Subject: [PATCH] Ensure Input and List overlay titles are centered like the other overlays. --- src/musikcube/cursespp/InputOverlay.cpp | 2 +- src/musikcube/cursespp/ListOverlay.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/musikcube/cursespp/InputOverlay.cpp b/src/musikcube/cursespp/InputOverlay.cpp index c026165ad..7e769e41d 100644 --- a/src/musikcube/cursespp/InputOverlay.cpp +++ b/src/musikcube/cursespp/InputOverlay.cpp @@ -181,7 +181,7 @@ void InputOverlay::Redraw() { if (this->title.size()) { wmove(c, 0, 1); wattron(c, A_BOLD); - checked_wprintw(c, text::Ellipsize(this->title, this->width - 4).c_str()); + checked_wprintw(c, text::Align(this->title, text::AlignCenter, this->width - 4).c_str()); wattroff(c, A_BOLD); } } \ No newline at end of file diff --git a/src/musikcube/cursespp/ListOverlay.cpp b/src/musikcube/cursespp/ListOverlay.cpp index 8549c96f9..b21d470df 100644 --- a/src/musikcube/cursespp/ListOverlay.cpp +++ b/src/musikcube/cursespp/ListOverlay.cpp @@ -230,7 +230,7 @@ void ListOverlay::Redraw() { if (this->title.size()) { wmove(c, currentY, currentX); wattron(c, A_BOLD); - checked_wprintw(c, text::Ellipsize(this->title, this->width - 4).c_str()); + checked_wprintw(c, text::Align(this->title, text::AlignCenter, this->width - 4).c_str()); wattroff(c, A_BOLD); currentY += 2; }