MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / DrawRectOutline

Function DrawRectOutline

LibLemon/src/gfx/graphics.cpp:118–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 }
117
118 void DrawRectOutline(int x, int y, int width, int height, uint8_t r, uint8_t g, uint8_t b, surface_t* surface){
119 DrawRect(x, y, width, 1, r, g, b, surface);
120 DrawRect(x, y + 1, 1, height - 1, r, g, b, surface);
121 DrawRect(x, y + height - 1, width, 1, r, g, b, surface);
122 DrawRect(x + width - 1, y + 1, 1, height - 1, r, g, b, surface);
123 }
124
125 void DrawRectOutline(int x, int y, int width, int height, rgba_colour_t colour, surface_t* surface){
126 DrawRectOutline(x,y,width,height,colour.r,colour.g,colour.b,surface);

Callers 2

DrawMethod · 0.85
PaintMethod · 0.85

Calls 1

DrawRectFunction · 0.70

Tested by

no test coverage detected