diff options
author | Tarek Soliman | 2017-06-02 00:01:30 -0500 |
---|---|---|
committer | Tarek Soliman | 2017-06-09 13:17:09 -0500 |
commit | 7de8be411ddb567f78ca4ceba945afa093258b34 (patch) | |
tree | 09ebf62342a653a7533ffc4be5cf5037a9029570 | |
parent | 231c263f708779bf6be3a8f38d9e0ff8438bc0e2 (diff) | |
download | scummvm-rg350-7de8be411ddb567f78ca4ceba945afa093258b34.tar.gz scummvm-rg350-7de8be411ddb567f78ca4ceba945afa093258b34.tar.bz2 scummvm-rg350-7de8be411ddb567f78ca4ceba945afa093258b34.zip |
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.
-rw-r--r-- | gui/saveload-dialog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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); |