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

Method DrawLine

src/blitter/32bpp_base.cpp:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void Blitter_32bppBase::DrawLine(void *video, int x, int y, int x2, int y2, int screen_width, int screen_height, PixelColour colour, int width, int dash)
27{
28 const Colour c = LookupColourInPalette(colour.p);
29 this->DrawLineGeneric(x, y, x2, y2, screen_width, screen_height, width, dash, [=](int x, int y) {
30 *((Colour *)video + x + y * _screen.pitch) = c;
31 });
32}
33
34void Blitter_32bppBase::DrawRect(void *video, int width, int height, PixelColour colour)
35{

Callers

nothing calls this directly

Calls 1

DrawLineGenericMethod · 0.80

Tested by

no test coverage detected