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

Method drawRect

src/Engine/Surface.cpp:546–549  ·  view source on GitHub ↗

* Draws a filled rectangle on the surface. * @param rect Pointer to Rect. * @param color Color of the rectangle. */

Source from the content-addressed store, hash-verified

544 * @param color Color of the rectangle.
545 */
546void Surface::drawRect(SDL_Rect *rect, Uint8 color)
547{
548 SDL_FillRect(_surface, rect, color);
549}
550
551/**
552 * Draws a filled rectangle on the surface.

Callers 15

invClickMethod · 0.80
MiniMapStateMethod · 0.80
PrimeGrenadeStateMethod · 0.80
MedikitStateMethod · 0.80
drawGridMethod · 0.80
setSelectableMethod · 0.80
blinkMethod · 0.80
GeoscapeStateMethod · 0.80
resizeMethod · 0.80
DogfightStateMethod · 0.80
GraphsStateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected