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

Method Draw

src/toolbar_gui.cpp:1479–1487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1477 }
1478
1479 void Draw(const Window *w) override
1480 {
1481 /* Draw brown-red toolbar bg. */
1482 const Rect r = this->GetCurrentRect();
1483 GfxFillRect(r, PC_VERY_DARK_RED);
1484 GfxFillRect(r, PC_DARK_RED, FILLRECT_CHECKER);
1485
1486 this->NWidgetContainer::Draw(w);
1487 }
1488
1489 /**
1490 * Get the arrangement of the buttons for the toolbar.

Callers

nothing calls this directly

Calls 2

GetCurrentRectMethod · 0.80
GfxFillRectFunction · 0.70

Tested by

no test coverage detected