equal
deleted
inserted
replaced
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(); |