(svn r17674) -Codechange: replace SetDirty + OnInvalidateData with InvalidateData (which does the same). Also call InvalidateData in a few cases where that was actually meant.

This commit is contained in:
rubidium
2009-09-30 21:07:54 +00:00
parent 0032405093
commit c847f5c04e
6 changed files with 10 additions and 18 deletions

View File

@@ -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