aboutsummaryrefslogtreecommitdiff
path: root/gui/launcher.cpp
diff options
context:
space:
mode:
authorVicent Marti2008-09-20 13:52:12 +0000
committerVicent Marti2008-09-20 13:52:12 +0000
commit46168618be0152ebfcb68d2a0a46f98a676e204a (patch)
tree3547c47f0df76d78765d74e348c93857e823badc /gui/launcher.cpp
parent0d4ce96799da99a3f0c7c25ef14aac8951b93239 (diff)
downloadscummvm-rg350-46168618be0152ebfcb68d2a0a46f98a676e204a.tar.gz
scummvm-rg350-46168618be0152ebfcb68d2a0a46f98a676e204a.tar.bz2
scummvm-rg350-46168618be0152ebfcb68d2a0a46f98a676e204a.zip
- Reverted circle drawing algorithm.
- Fixed Launcher savegame load menu. svn-id: r34610
Diffstat (limited to 'gui/launcher.cpp')
-rw-r--r--gui/launcher.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index b79891ef76..978c224afd 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -517,6 +517,7 @@ SaveLoadChooser::SaveLoadChooser(const String &title, const String &buttonLabel)
_delSupport = _metaInfoSupport = _thumbnailSupport = _saveDateSupport = _playTimeSupport = false;
// _drawingHints |= GUI::THEME_HINT_SPECIAL_COLOR;
+ _backgroundType = Theme::kDialogBackgroundDefault;
new StaticTextWidget(this, "ScummSaveLoad.Title", title);
@@ -622,15 +623,12 @@ void SaveLoadChooser::reflowLayout() {
int thumbY = y + kLineHeight;
int textLines = 0;
- if (_saveDateSupport)
- textLines += 2;
- if (_playTimeSupport)
- textLines += 1;
-
- if (textLines)
- ++textLines;
+ if (!_saveDateSupport)
+ textLines++;
+ if (!_playTimeSupport)
+ textLines++;
- _container->resize(x, y, w, h + textLines * kLineHeight);
+ _container->resize(x, y, w, h - (kLineHeight * textLines));
_gfxWidget->resize(thumbX, thumbY, thumbW, thumbH);
int height = thumbY + thumbH + kLineHeight;