summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-08-08 20:39:45 +0000
committeralberth <alberth@openttd.org>2009-08-08 20:39:45 +0000
commit8d809d5f4c21afbed4bbeb0388d42a9c5718a755 (patch)
treea930214754c13d36744ee5570d8c43dff0316493
parent2cd3b5f44ce8940dfa34b7e2ac576975daca6e8d (diff)
downloadopenttd-8d809d5f4c21afbed4bbeb0388d42a9c5718a755.tar.xz
(svn r17123) -Codechange (r17122): Use this for calling methods.
-rw-r--r--src/news_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index c43d29088..d3c9577e5 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -789,7 +789,7 @@ struct MessageHistoryWindow : Window {
{
this->InitNested(desc); // Initializes 'this->line_height' and 'this->date_width'.
this->vscroll.cap = (this->nested_array[MHW_BACKGROUND]->current_y - this->top_spacing - this->bottom_spacing) / this->line_height;
- OnInvalidateData(0);
+ this->OnInvalidateData(0);
}
virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *resize)
@@ -808,7 +808,7 @@ struct MessageHistoryWindow : Window {
virtual void OnPaint()
{
- OnInvalidateData(0);
+ this->OnInvalidateData(0);
this->DrawWidgets();
}
@@ -862,7 +862,7 @@ struct MessageHistoryWindow : Window {
virtual void OnResize(Point delta)
{
this->vscroll.cap += delta.y / this->line_height;
- OnInvalidateData(0);
+ this->OnInvalidateData(0);
}
};