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

Function DrawDefSizeBox

src/widget.cpp:676–679  ·  view source on GitHub ↗

* Draw a defsize box. * @param r Rectangle of the box. * @param colour Colour of the defsize box. * @param clicked Box is lowered. */

Source from the content-addressed store, hash-verified

674 * @param clicked Box is lowered.
675 */
676static inline void DrawDefSizeBox(const Rect &r, Colours colour, bool clicked)
677{
678 DrawImageButtons(r, WWT_DEFSIZEBOX, colour, clicked, SPR_WINDOW_DEFSIZE, SA_CENTER);
679}
680
681/**
682 * Draw a NewGRF debug box.

Callers 1

DrawMethod · 0.85

Calls 1

DrawImageButtonsFunction · 0.85

Tested by

no test coverage detected