src/viewport.cpp
changeset 7888 a28f4cfff934
parent 7849 0a1c0af2c96c
child 7889 e74ce8853ba7
equal deleted inserted replaced
7887:b72ef3f45a38 7888:a28f4cfff934
  2292 		if (_thd.new_drawstyle) SetSelectionTilesDirty();
  2292 		if (_thd.new_drawstyle) SetSelectionTilesDirty();
  2293 	}
  2293 	}
  2294 }
  2294 }
  2295 
  2295 
  2296 /** highlighting tiles while only going over them with the mouse */
  2296 /** highlighting tiles while only going over them with the mouse */
  2297 void VpStartPlaceSizing(TileIndex tile, byte method, byte process)
  2297 void VpStartPlaceSizing(TileIndex tile, ViewportPlaceMethod method, byte process)
  2298 {
  2298 {
  2299 	_thd.select_method = method;
  2299 	_thd.select_method = method;
  2300 	_thd.select_proc   = process;
  2300 	_thd.select_proc   = process;
  2301 	_thd.selend.x = TileX(tile) * TILE_SIZE;
  2301 	_thd.selend.x = TileX(tile) * TILE_SIZE;
  2302 	_thd.selstart.x = TileX(tile) * TILE_SIZE;
  2302 	_thd.selstart.x = TileX(tile) * TILE_SIZE;
  2629  * Selects tiles while dragging
  2629  * Selects tiles while dragging
  2630  * @param x X coordinate of end of selection
  2630  * @param x X coordinate of end of selection
  2631  * @param y Y coordinate of end of selection
  2631  * @param y Y coordinate of end of selection
  2632  * @param method modifies the way tiles are selected. Possible
  2632  * @param method modifies the way tiles are selected. Possible
  2633  * methods are VPM_* in viewport.h */
  2633  * methods are VPM_* in viewport.h */
  2634 void VpSelectTilesWithMethod(int x, int y, int method)
  2634 void VpSelectTilesWithMethod(int x, int y, ViewportPlaceMethod method)
  2635 {
  2635 {
  2636 	int sx, sy;
  2636 	int sx, sy;
  2637 	HighLightStyle style;
  2637 	HighLightStyle style;
  2638 
  2638 
  2639 	if (x == -1) {
  2639 	if (x == -1) {