MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / drawLine

Method drawLine

src/Engine/Surface.cpp:577–580  ·  view source on GitHub ↗

* Draws a line on the surface. * @param x1 Start x coordinate in pixels. * @param y1 Start y coordinate in pixels. * @param x2 End x coordinate in pixels. * @param y2 End y coordinate in pixels. * @param color Color of the line. */

Source from the content-addressed store, hash-verified

575 * @param color Color of the line.
576 */
577void Surface::drawLine(Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint8 color)
578{
579 lineColor(_surface, x1, y1, x2, y2, Palette::getRGBA(getPalette(), color));
580}
581
582/**
583 * Draws a filled circle on the surface.

Callers 5

drawVHLineMethod · 0.80
drawDetailMethod · 0.80
drawCountryLinesMethod · 0.80
drawRegionLinesMethod · 0.80
drawFinanceLinesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected