diff options
author | frosch <frosch@openttd.org> | 2009-09-13 19:15:59 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-09-13 19:15:59 +0000 |
commit | ebd916be3def20902cf19ffd16555074728eb9c3 (patch) | |
tree | c7748d7612a61b9558ffd10ffb176e34584f2376 /src/graph_gui.cpp | |
parent | 5de9cc46b50b8e677395543c10b26b59c860212b (diff) | |
download | openttd-ebd916be3def20902cf19ffd16555074728eb9c3.tar.xz |
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
Diffstat (limited to 'src/graph_gui.cpp')
-rw-r--r-- | src/graph_gui.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index a77a44460..5cb2aa381 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -87,11 +87,11 @@ struct GraphLegendWindow : Window { ToggleBit(_legend_excluded_companies, widget - GLW_FIRST_COMPANY); this->ToggleWidgetLoweredState(widget); this->SetDirty(); - InvalidateWindow(WC_INCOME_GRAPH, 0); - InvalidateWindow(WC_OPERATING_PROFIT, 0); - InvalidateWindow(WC_DELIVERED_CARGO, 0); - InvalidateWindow(WC_PERFORMANCE_HISTORY, 0); - InvalidateWindow(WC_COMPANY_VALUE, 0); + SetWindowDirty(WC_INCOME_GRAPH, 0); + SetWindowDirty(WC_OPERATING_PROFIT, 0); + SetWindowDirty(WC_DELIVERED_CARGO, 0); + SetWindowDirty(WC_PERFORMANCE_HISTORY, 0); + SetWindowDirty(WC_COMPANY_VALUE, 0); } virtual void OnInvalidateData(int data) @@ -403,7 +403,7 @@ protected: Window(desc, window_number), has_negative_values(has_negative_values), format_str_y_axis(format_str_y_axis) { - InvalidateWindow(WC_GRAPH_LEGEND, 0); + SetWindowDirty(WC_GRAPH_LEGEND, 0); this->num_vert_lines = 24; this->graph_location.left = left; |