| 146 | } |
| 147 | |
| 148 | void grViewport::rect(ddgr_color color, int l, int t, int r, int b) { |
| 149 | ASSERT(vp_Locked); |
| 150 | |
| 151 | l = global_x(l); |
| 152 | t = global_y(t); |
| 153 | r = global_x(r); |
| 154 | b = global_y(b); |
| 155 | |
| 156 | rend_SetFlatColor(color); |
| 157 | rend_DrawLine(l, t, r, t); |
| 158 | rend_DrawLine(r, t, r, b); |
| 159 | rend_DrawLine(l, b, r, b); |
| 160 | rend_DrawLine(l, t, l, b); |
| 161 | } |
| 162 | |
| 163 | void grViewport::fillrect(ddgr_color color, int l, int t, int r, int b) { |
| 164 | ASSERT(vp_Locked); |
no test coverage detected