src/airport_gui.cpp
changeset 9273 35e0224ea8f1
parent 9268 fa447d3b408d
child 9293 96e818608056
equal deleted inserted replaced
9272:e64b518a7b54 9273:35e0224ea8f1
    67 
    67 
    68 static void BuildAirToolbWndProc(Window *w, WindowEvent *e)
    68 static void BuildAirToolbWndProc(Window *w, WindowEvent *e)
    69 {
    69 {
    70 	switch (e->event) {
    70 	switch (e->event) {
    71 		case WE_PAINT:
    71 		case WE_PAINT:
    72 			DrawWindowWidgets(w);
    72 			w->DrawWidgets();
    73 			break;
    73 			break;
    74 
    74 
    75 		case WE_CLICK:
    75 		case WE_CLICK:
    76 			if (e->we.click.widget - 3 >= 0)
    76 			if (e->we.click.widget - 3 >= 0)
    77 				_build_air_button_proc[e->we.click.widget - 3](w);
    77 				_build_air_button_proc[e->we.click.widget - 3](w);
   195 
   195 
   196 		int rad = _patches.modified_catchment ? airport->catchment : (uint)CA_UNMODIFIED;
   196 		int rad = _patches.modified_catchment ? airport->catchment : (uint)CA_UNMODIFIED;
   197 
   197 
   198 		if (_station_show_coverage) SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);
   198 		if (_station_show_coverage) SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);
   199 
   199 
   200 		DrawWindowWidgets(this);
   200 		this->DrawWidgets();
   201 		/* strings such as 'Size' and 'Coverage Area' */
   201 		/* strings such as 'Size' and 'Coverage Area' */
   202 		int text_end = DrawStationCoverageAreaText(2, 206, SCT_ALL, rad, false);
   202 		int text_end = DrawStationCoverageAreaText(2, 206, SCT_ALL, rad, false);
   203 		text_end = DrawStationCoverageAreaText(2, text_end + 4, SCT_ALL, rad, true) + 4;
   203 		text_end = DrawStationCoverageAreaText(2, text_end + 4, SCT_ALL, rad, true) + 4;
   204 		if (text_end != this->widget[BAW_BOTTOMPANEL].bottom) {
   204 		if (text_end != this->widget[BAW_BOTTOMPANEL].bottom) {
   205 			this->SetDirty();
   205 			this->SetDirty();