equal
deleted
inserted
replaced
184 if (_station_show_coverage) SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad); |
184 if (_station_show_coverage) SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad); |
185 |
185 |
186 DrawWindowWidgets(w); |
186 DrawWindowWidgets(w); |
187 // strings such as 'Size' and 'Coverage Area' |
187 // strings such as 'Size' and 'Coverage Area' |
188 // 'Coverage Area' |
188 // 'Coverage Area' |
189 int text_end = DrawStationCoverageAreaText(2, 206, SCT_ALL, rad) + 4; |
189 int text_end = DrawStationCoverageAreaText(2, 206, SCT_ALL, rad, false); |
190 if (text_end > w->widget[6].bottom) { |
190 text_end = DrawStationCoverageAreaText(2, text_end + 4, SCT_ALL, rad, true) + 4; |
|
191 if (text_end != w->widget[6].bottom) { |
191 SetWindowDirty(w); |
192 SetWindowDirty(w); |
192 ResizeWindowForWidget(w, 6, 0, text_end - w->widget[6].bottom); |
193 ResizeWindowForWidget(w, 6, 0, text_end - w->widget[6].bottom); |
193 SetWindowDirty(w); |
194 SetWindowDirty(w); |
194 } |
195 } |
195 break; |
196 break; |