src/dock_gui.cpp
changeset 8846 1b90782b2c4e
parent 8786 1823ff88a054
child 9080 34bc7cbbb79a
equal deleted inserted replaced
8845:f9ef3bb70e47 8846:1b90782b2c4e
   252 			SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);
   252 			SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);
   253 		} else {
   253 		} else {
   254 			SetTileSelectSize(1, 1);
   254 			SetTileSelectSize(1, 1);
   255 		}
   255 		}
   256 
   256 
   257 		int text_end = DrawStationCoverageAreaText(4, 50, SCT_ALL, rad) + 4;
   257 		int text_end = DrawStationCoverageAreaText(4, 50, SCT_ALL, rad, false);
   258 		if (text_end > w->widget[2].bottom) {
   258 		text_end = DrawStationCoverageAreaText(4, text_end + 4, SCT_ALL, rad, true) + 4;
       
   259 		if (text_end != w->widget[2].bottom) {
   259 			SetWindowDirty(w);
   260 			SetWindowDirty(w);
   260 			ResizeWindowForWidget(w, 2, 0, text_end - w->widget[2].bottom);
   261 			ResizeWindowForWidget(w, 2, 0, text_end - w->widget[2].bottom);
   261 			SetWindowDirty(w);
   262 			SetWindowDirty(w);
   262 		}
   263 		}
   263 
   264