Skip to content

Commit

Permalink
GUI: Remove left-over code from theme based fill color in thumbnail d…
Browse files Browse the repository at this point in the history
…isplay.
  • Loading branch information
Johannes Schickel committed Aug 12, 2012
1 parent 4f7c65a commit e7cd238
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 3 additions & 6 deletions gui/saveload-dialog.cpp
Expand Up @@ -188,8 +188,6 @@ enum {

SaveLoadChooserSimple::SaveLoadChooserSimple(const String &title, const String &buttonLabel, bool saveMode)
: SaveLoadChooserDialog("SaveLoadChooser", saveMode), _list(0), _chooseButton(0), _deleteButton(0), _gfxWidget(0) {
_fillR = _fillG = _fillB = 0;

_backgroundType = ThemeEngine::kDialogBackgroundSpecial;

new StaticTextWidget(this, "SaveLoadChooser.Title", title);
Expand Down Expand Up @@ -327,9 +325,6 @@ void SaveLoadChooserSimple::reflowLayout() {

_playtime->setVisible(_playTimeSupport);

_fillR = 0;
_fillG = 0;
_fillB = 0;
updateSelection(false);
} else {
_container->setVisible(false);
Expand All @@ -349,7 +344,9 @@ void SaveLoadChooserSimple::updateSelection(bool redraw) {
bool isWriteProtected = false;
bool startEditMode = _list->isEditable();

_gfxWidget->setGfx(-1, -1, _fillR, _fillG, _fillB);
// We used to support letting the themes specify the fill color with our
// initial theme based GUI. But this support was dropped.
_gfxWidget->setGfx(-1, -1, 0, 0, 0);
_date->setLabel(_("No date saved"));
_time->setLabel(_("No time saved"));
_playtime->setLabel(_("No playtime saved"));
Expand Down
2 changes: 0 additions & 2 deletions gui/saveload-dialog.h
Expand Up @@ -119,8 +119,6 @@ class SaveLoadChooserSimple : public SaveLoadChooserDialog {
SaveStateList _saveList;
String _resultString;

uint8 _fillR, _fillG, _fillB;

void updateSaveList();
void updateSelection(bool redraw);
};
Expand Down

0 comments on commit e7cd238

Please sign in to comment.