| 2020 | int bmw, bmh; |
| 2021 | |
| 2022 | void CBriefEdit::DrawRect(ddgr_color color, int lx, int ty, int rx, int by, grViewport *vport) { |
| 2023 | if (lx < 0) |
| 2024 | lx = 0; |
| 2025 | if (lx > (bmw - 1)) |
| 2026 | lx = bmw - 1; |
| 2027 | if (rx < 0) |
| 2028 | rx = 0; |
| 2029 | if (rx > (bmw - 1)) |
| 2030 | rx = bmw - 1; |
| 2031 | if (ty < 0) |
| 2032 | ty = 0; |
| 2033 | if (ty > (bmh - 1)) |
| 2034 | ty = bmh - 1; |
| 2035 | if (by < 0) |
| 2036 | by = 0; |
| 2037 | if (by > (bmh - 1)) |
| 2038 | by = bmh - 1; |
| 2039 | |
| 2040 | // vport->fillrect(color,lx,ty,rx,by); |
| 2041 | vport->line(color, lx, ty, lx, by); |
| 2042 | vport->line(color, rx, ty, rx, by); |
| 2043 | vport->line(color, lx, ty, rx, ty); |
| 2044 | vport->line(color, lx, by, rx, by); |
| 2045 | } |
| 2046 | |
| 2047 | void CBriefEdit::UpdateView(void) { |
| 2048 | CWnd *objwnd; |