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

Function DrawDebugBox

src/widget.cpp:687–690  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

685 * @param clicked Box is lowered.
686 */
687static inline void DrawDebugBox(const Rect &r, Colours colour, bool clicked)
688{
689 DrawImageButtons(r, WWT_DEBUGBOX, colour, clicked, SPR_WINDOW_DEBUG, SA_CENTER);
690}
691
692/**
693 * Draw a resize box.

Callers 1

DrawMethod · 0.85

Calls 1

DrawImageButtonsFunction · 0.85

Tested by

no test coverage detected