* Line drawing - very device dependent */
| 1240 | * Line drawing - very device dependent |
| 1241 | */ |
| 1242 | short |
| 1243 | draw_tty_line(WindowPtr window, short from_x, short from_y, short to_x, |
| 1244 | short to_y) |
| 1245 | { |
| 1246 | Rect r; |
| 1247 | RECORD_EXISTS(record); |
| 1248 | |
| 1249 | select_offscreen_port(record); |
| 1250 | MoveTo(from_x, from_y); |
| 1251 | LineTo(to_x, to_y); |
| 1252 | canonical_rect(&r, from_x, from_y, to_x, to_y); |
| 1253 | accumulate_rect(record, &r); |
| 1254 | if (DRAW_DIRECT) { |
| 1255 | update_tty(window); |
| 1256 | } else |
| 1257 | select_onscreen_window(record); |
| 1258 | } |
| 1259 | |
| 1260 | #endif /* EXTENDED_SUPPORT */ |
nothing calls this directly
no test coverage detected