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

Method SetPixel

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

Source from the content-addressed store, hash-verified

30}
31
32void Blitter_8bppBase::SetPixel(void *video, int x, int y, PixelColour colour)
33{
34 *((uint8_t *)video + x + y * _screen.pitch) = colour.p;
35}
36
37void Blitter_8bppBase::DrawLine(void *video, int x, int y, int x2, int y2, int screen_width, int screen_height, PixelColour colour, int width, int dash)
38{

Callers 5

GfxFillRectFunction · 0.45
GfxFillPolygonFunction · 0.45
DrawSmallMapColumnMethod · 0.45
DrawVehiclesMethod · 0.45
ViewportDrawDirtyBlocksFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected