(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

@@ -996,7 +996,6 @@ struct MessageHistoryWindow : Window {
virtual void OnResize(Point delta)
{
this->vscroll.UpdateCapacity(delta.y / this->line_height);
this->OnInvalidateData(0);
}
};
@@ -1160,8 +1159,7 @@ struct MessageOptionsWindow : Window {
case WIDGET_NEWSOPT_SOUNDTICKER: // Change ticker sound on/off
_news_ticker_sound ^= 1;
this->OnInvalidateData(0);
this->SetWidgetDirty(widget);
this->InvalidateData();
break;
default: { // Clicked on the [<] .. [>] widgets
@@ -1187,8 +1185,7 @@ struct MessageOptionsWindow : Window {
this->SetMessageButtonStates(index, i);
_news_type_data[i].display = (NewsDisplay)index;
}
this->OnInvalidateData(0);
this->SetDirty();
this->InvalidateData();
}
};