From 7de8be411ddb567f78ca4ceba945afa093258b34 Mon Sep 17 00:00:00 2001 From: Tarek Soliman Date: Fri, 2 Jun 2017 00:01:30 -0500 Subject: GUI: Fix savegame thumbnail label layout The Save/Load screen has a preview area with labels for date and time. The bottom label was drawing past the bottom of the rect. --- gui/saveload-dialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/saveload-dialog.cpp b/gui/saveload-dialog.cpp index 4bd71d39cf..f159a12ff2 100644 --- a/gui/saveload-dialog.cpp +++ b/gui/saveload-dialog.cpp @@ -475,9 +475,11 @@ void SaveLoadChooserSimple::reflowLayout() { int textLines = 0; if (!_saveDateSupport) - textLines++; + textLines += 2; if (!_playTimeSupport) textLines++; + if (_saveDateSupport || _playTimeSupport) + textLines--; // add a line of padding at the bottom _container->resize(x, y, w, h - (kLineHeight * textLines)); _gfxWidget->resize(thumbX, thumbY, thumbW, thumbH); -- cgit v1.2.3