From 1fd21c7c7dc87d5e7412c2c25d87ba1377eb09d7 Mon Sep 17 00:00:00 2001 From: av-dx Date: Fri, 2 Jul 2021 12:58:32 +0530 Subject: [PATCH] GUI: Center-align titles --- gui/widgets/grid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/widgets/grid.cpp b/gui/widgets/grid.cpp index 55da4058fa8..adedd0c8d11 100644 --- a/gui/widgets/grid.cpp +++ b/gui/widgets/grid.cpp @@ -120,9 +120,9 @@ void GridItemWidget::drawWidget() { if (_grid->_isTitlesVisible) { int breakPoint = breakText(_activeEntry->title, thumbWidth); g_gui.theme()->drawText(Common::Rect(_x, _y + thumbHeight, _x + thumbWidth, _y + thumbHeight + kLineHeight), - _activeEntry->title.substr(0, breakPoint), GUI::ThemeEngine::kStateEnabled ,Graphics::kTextAlignLeft); + _activeEntry->title.substr(0, breakPoint), GUI::ThemeEngine::kStateEnabled ,Graphics::kTextAlignCenter); g_gui.theme()->drawText(Common::Rect(_x, _y + thumbHeight + kLineHeight, _x + thumbWidth, _y + thumbHeight + 2 * kLineHeight), - _activeEntry->title.substr(breakPoint + 1), GUI::ThemeEngine::kStateEnabled ,Graphics::kTextAlignLeft); + _activeEntry->title.substr(breakPoint + 1), GUI::ThemeEngine::kStateEnabled ,Graphics::kTextAlignCenter); } }