diff options
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r-- | src/news_gui.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp index 0cb3d7ca1..f704ca1d4 100644 --- a/src/news_gui.cpp +++ b/src/news_gui.cpp @@ -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(); } }; |