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

Function DrawOutline

src/widget.cpp:840–845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838bool _draw_widget_outlines;
839
840static void DrawOutline(const Window *, const NWidgetBase *wid)
841{
842 if (!_draw_widget_outlines || wid->current_x == 0 || wid->current_y == 0) return;
843
844 DrawRectOutline(wid->GetCurrentRect(), PC_WHITE, 1, 4);
845}
846
847/**
848 * @defgroup NestedWidgets Hierarchical widgets

Callers 1

DrawMethod · 0.85

Calls 2

DrawRectOutlineFunction · 0.85
GetCurrentRectMethod · 0.80

Tested by

no test coverage detected