MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SetTileSelectSize

Function SetTileSelectSize

src/viewport.cpp:2619–2625  ·  view source on GitHub ↗

* Highlight \a w by \a h tiles at the cursor. * @param w Width of the highlighted tiles rectangle. * @param h Height of the highlighted tiles rectangle. */

Source from the content-addressed store, hash-verified

2617 * @param h Height of the highlighted tiles rectangle.
2618 */
2619void SetTileSelectSize(int w, int h)
2620{
2621 _thd.new_size.x = w * TILE_SIZE;
2622 _thd.new_size.y = h * TILE_SIZE;
2623 _thd.new_outersize.x = 0;
2624 _thd.new_outersize.y = 0;
2625}
2626
2627void SetTileSelectBigSize(int ox, int oy, int sx, int sy)
2628{

Callers 12

OnPaintMethod · 0.85
UpdateSelectSizeMethod · 0.85
OnPaintMethod · 0.85
UpdateDocksDirectionMethod · 0.85
UpdateSelectSizeMethod · 0.85
BuildRailClick_RemoveFunction · 0.85
OnPaintMethod · 0.85
OnClickMethod · 0.85
UpdateSelectSizeMethod · 0.85
VpHandlePlaceSizingDragFunction · 0.85
SetObjectToPlaceFunction · 0.85
OnPaintMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected