src/dock_gui.cpp
changeset 8423 0c0f0370620b
parent 8413 c7f3384330a3
child 8573 a0a5f36a982e
equal deleted inserted replaced
8422:4643fb49b1c7 8423:0c0f0370620b
   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 		DrawStationCoverageAreaText(4, 50, SCT_ALL, rad);
   257 		int text_end = DrawStationCoverageAreaText(4, 50, SCT_ALL, rad) + 4;
       
   258 		if (text_end > w->widget[2].bottom) {
       
   259 			SetWindowDirty(w);
       
   260 			ResizeWindowForWidget(w, 2, 0, text_end - w->widget[2].bottom);
       
   261 			SetWindowDirty(w);
       
   262 		}
       
   263 
   258 		break;
   264 		break;
   259 	}
   265 	}
   260 
   266 
   261 	case WE_CLICK:
   267 	case WE_CLICK:
   262 		switch (e->we.click.widget) {
   268 		switch (e->we.click.widget) {