(svn r12356) [NewGRF_ports] -Codechange: Use enummed widgets since its got them. NewGRF_ports
authorrichk
Mon, 10 Mar 2008 16:29:40 +0000
branchNewGRF_ports
changeset 6882 f508b3bab2c5
parent 6881 c3ade087d011
child 6883 8a09982aebc5
(svn r12356) [NewGRF_ports] -Codechange: Use enummed widgets since its got them.
src/airport_gui.cpp
--- a/src/airport_gui.cpp	Mon Mar 10 16:23:19 2008 +0000
+++ b/src/airport_gui.cpp	Mon Mar 10 16:29:40 2008 +0000
@@ -256,9 +256,9 @@
 			int rad = _patches.modified_catchment ? fsmportspec->portFSM->catchment : 4;
 			if (_station_show_coverage) SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);
 			int text_end = DrawStationCoverageAreaText(2, 206, SCT_ALL, rad) + 4;
-			if (text_end > w->widget[2].bottom) {
+			if (text_end > w->widget[BAPW_BACKGROUND].bottom) {
 				SetWindowDirty(w);
-				ResizeWindowForWidget(w, 2, 0, text_end - w->widget[2].bottom);
+				ResizeWindowForWidget(w, BAPW_BACKGROUND, 0, text_end - w->widget[BAPW_BACKGROUND].bottom);
 				SetWindowDirty(w);
 			}
 		} else {