summaryrefslogtreecommitdiff
path: root/src/settings_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-30 21:07:54 +0000
committerrubidium <rubidium@openttd.org>2009-09-30 21:07:54 +0000
commitc847f5c04e15920d6f4d9a80e181ffc63e61264a (patch)
tree9f80b07df68b2aa6c53c11a8be64e4cc4d690737 /src/settings_gui.cpp
parent00324050930287e25d9a616f12cdf1421c3445e7 (diff)
downloadopenttd-c847f5c04e15920d6f4d9a80e181ffc63e61264a.tar.xz
(svn r17674) -Codechange: replace SetDirty + OnInvalidateData with InvalidateData (which does the same). Also call InvalidateData in a few cases where that was actually meant.
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r--src/settings_gui.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index 6886d8cbc..585223509 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -353,8 +353,7 @@ struct GameOptionsWindow : Window {
T::SetSet(name);
this->reload = true;
- this->SetDirty();
- this->OnInvalidateData(0);
+ this->InvalidateData();
}
}
@@ -625,8 +624,7 @@ public:
this->RaiseWidget(GDW_LVL_EASY + this->opt_mod_temp.difficulty.diff_level);
SetDifficultyLevel(3, &this->opt_mod_temp.difficulty); // set difficulty level to custom
this->LowerWidget(GDW_LVL_CUSTOM);
- this->OnInvalidateData();
- this->SetDirty();
+ this->InvalidateData();
return;
}
@@ -639,8 +637,7 @@ public:
this->RaiseWidget(GDW_LVL_EASY + this->opt_mod_temp.difficulty.diff_level);
SetDifficultyLevel(widget - GDW_LVL_EASY, &this->opt_mod_temp.difficulty);
this->LowerWidget(GDW_LVL_EASY + this->opt_mod_temp.difficulty.diff_level);
- this->OnInvalidateData();
- this->SetDirty();
+ this->InvalidateData();
break;
case GDW_HIGHSCORE: // Highscore Table