MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / GUI_DrawWiredRectangle

Function GUI_DrawWiredRectangle

src/gui/gui.c:179–187  ·  view source on GitHub ↗

* Draw a wired rectangle. * @param left The left position of the rectangle. * @param top The top position of the rectangle. * @param right The right position of the rectangle. * @param bottom The bottom position of the rectangle. * @param colour The colour of the rectangle. */

Source from the content-addressed store, hash-verified

177 * @param colour The colour of the rectangle.
178 */
179void GUI_DrawWiredRectangle(uint16 left, uint16 top, uint16 right, uint16 bottom, uint8 colour)
180{
181 GUI_DrawLine(left, top, right, top, colour);
182 GUI_DrawLine(left, bottom, right, bottom, colour);
183 GUI_DrawLine(left, top, left, bottom, colour);
184 GUI_DrawLine(right, top, right, bottom, colour);
185
186 GFX_Screen_SetDirty(SCREEN_ACTIVE, left, top, right+1, bottom+1);
187}
188
189/**
190 * Draw a filled rectangle.

Calls 2

GUI_DrawLineFunction · 0.85
GFX_Screen_SetDirtyFunction · 0.85

Tested by

no test coverage detected