misc_gui.c
changeset 568 b0d0df062880
parent 543 946badd71033
child 596 a787fc8fba4a
equal deleted inserted replaced
567:e63b977925f7 568:b0d0df062880
   638 	}
   638 	}
   639 
   639 
   640 	DrawStringMultiLine(str_x, str_y, STR_SPEC_USERSTRING, 144);
   640 	DrawStringMultiLine(str_x, str_y, STR_SPEC_USERSTRING, 144);
   641 }
   641 }
   642 
   642 
   643 void DrawStationCoverageAreaText(int sx, int sy, uint mask) {
   643 void DrawStationCoverageAreaText(int sx, int sy, uint mask, int rad) {
   644 	int x = _thd.pos.x;
   644 	int x = _thd.pos.x;
   645 	int y = _thd.pos.y;
   645 	int y = _thd.pos.y;
   646 	uint accepts[NUM_CARGO];
   646 	uint accepts[NUM_CARGO];
   647 	if (x != -1) {
   647 	if (x != -1) {
   648 		GetAcceptanceAroundTiles(accepts, TILE_FROM_XY(x,y), _thd.new_size.x >> 4, _thd.new_size.y >> 4);
   648 		GetAcceptanceAroundTiles(accepts, TILE_FROM_XY(x,y), _thd.new_size.x >> 4, _thd.new_size.y >> 4, rad);
   649 		DrawStationCoverageText(accepts, sx, sy, mask);
   649 		DrawStationCoverageText(accepts, sx, sy, mask);
   650 	}
   650 	}
   651 }
   651 }
   652 
   652 
   653 void CheckRedrawStationCoverage(Window *w)
   653 void CheckRedrawStationCoverage(Window *w)