MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ui_DrawLTBox

Function ui_DrawLTBox

ui/UIDraw.cpp:144–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void ui_DrawLTBox(ddgr_color lt_col, ddgr_color rb_col, int l, int t, int r, int b) {
145 if (lt_col != TRANSPARENT_COLOR32) {
146 rend_SetFlatColor(lt_col);
147 rend_DrawLine(l, t, r - 1, t);
148 rend_DrawLine(l, t, l, b - 1);
149 }
150 if (rb_col != TRANSPARENT_COLOR32) {
151 rend_SetFlatColor(rb_col);
152 rend_DrawLine(l, b - 1, r - 1, b - 1);
153 rend_DrawLine(r - 1, t + 1, r - 1, b - 1);
154 }
155}
156
157void ui_DrawRect(ddgr_color color, int l, int t, int r, int b) {
158 if (color == TRANSPARENT_COLOR32)

Callers 1

OnDrawMethod · 0.85

Calls 2

rend_SetFlatColorFunction · 0.50
rend_DrawLineFunction · 0.50

Tested by

no test coverage detected