| 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); |