From 98d3f11d45c879b6cb0728c7a77fab349329abe8 Mon Sep 17 00:00:00 2001 From: truebrain Date: Fri, 16 Dec 2011 16:23:50 +0000 Subject: (svn r23529) -Codechange: make all widget enum values unique and make them include the files they need to compile --- src/newgrf_gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/newgrf_gui.cpp') diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index ce18a1e61..8d49326a2 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -1918,7 +1918,7 @@ static const NWidgetPart _nested_scan_progress_widgets[] = { NWidget(NWID_VERTICAL), SetPIP(11, 8, 11), NWidget(WWT_LABEL, INVALID_COLOUR), SetDataTip(STR_NEWGRF_SCAN_MESSAGE, STR_NULL), SetFill(1, 0), NWidget(WWT_EMPTY, INVALID_COLOUR, SPWW_PROGRESS_BAR), SetFill(1, 0), - NWidget(WWT_EMPTY, INVALID_COLOUR, GPWW_PROGRESS_TEXT), SetFill(1, 0), + NWidget(WWT_EMPTY, INVALID_COLOUR, SPWW_PROGRESS_TEXT), SetFill(1, 0), EndContainer(), EndContainer(), EndContainer(), @@ -1961,7 +1961,7 @@ struct ScanProgressWindow : public Window { break; } - case GPWW_PROGRESS_TEXT: + case SPWW_PROGRESS_TEXT: SetDParam(0, 9999); SetDParam(1, 9999); /* We really don't know the width. We could determine it by scanning the NewGRFs, @@ -1985,7 +1985,7 @@ struct ScanProgressWindow : public Window { break; } - case GPWW_PROGRESS_TEXT: + case SPWW_PROGRESS_TEXT: SetDParam(0, this->scanned); SetDParam(1, _settings_client.gui.last_newgrf_count); DrawString(r.left, r.right, r.top, STR_NEWGRF_SCAN_STATUS, TC_FROMSTRING, SA_HOR_CENTER); -- cgit v1.2.3-54-g00ecf