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

Function GfxDrawLine

src/gfx.cpp:393–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391}
392
393void GfxDrawLine(int x, int y, int x2, int y2, PixelColour colour, int width, int dash)
394{
395 DrawPixelInfo *dpi = _cur_dpi;
396 if (GfxPreprocessLine(dpi, x, y, x2, y2, width)) {
397 GfxDoDrawLine(dpi->dst_ptr, x, y, x2, y2, dpi->width, dpi->height, colour, width, dash);
398 }
399}
400
401void GfxDrawLineUnscaled(int x, int y, int x2, int y2, PixelColour colour)
402{

Callers 13

DrawMethod · 0.85
DrawRectOutlineFunction · 0.85
DrawWidgetMethod · 0.85
DrawWidgetMethod · 0.85
DrawMethod · 0.85
DrawHorConnectionMethod · 0.85
DrawWidgetMethod · 0.85
DrawGroupInfoMethod · 0.85
DrawGraphMethod · 0.85
DrawSliderWidgetFunction · 0.85
DrawEngineListFunction · 0.85
DrawVehicleRefitWindowFunction · 0.85

Calls 2

GfxPreprocessLineFunction · 0.85
GfxDoDrawLineFunction · 0.85

Tested by

no test coverage detected