diff options
Diffstat (limited to 'gui/saveload-dialog.cpp')
-rw-r--r-- | gui/saveload-dialog.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gui/saveload-dialog.cpp b/gui/saveload-dialog.cpp index f159a12ff2..4bf23b8974 100644 --- a/gui/saveload-dialog.cpp +++ b/gui/saveload-dialog.cpp @@ -474,14 +474,14 @@ void SaveLoadChooserSimple::reflowLayout() { int thumbY = y + kLineHeight; int textLines = 0; - if (!_saveDateSupport) + if (_saveDateSupport) textLines += 2; - if (!_playTimeSupport) + if (_playTimeSupport) textLines++; - if (_saveDateSupport || _playTimeSupport) - textLines--; // add a line of padding at the bottom + if (textLines > 0) + textLines++; // add a line of padding at the bottom - _container->resize(x, y, w, h - (kLineHeight * textLines)); + _container->resize(x, y, w, h + (kLineHeight * textLines)); _gfxWidget->resize(thumbX, thumbY, thumbW, thumbH); int height = thumbY + thumbH + kLineHeight; |