diff options
Diffstat (limited to 'src/cm.c')
| -rw-r--r-- | src/cm.c | 15 |
1 files changed, 8 insertions, 7 deletions
| @@ -62,7 +62,7 @@ evalcost (c) | |||
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | /* The terminal to use for low-level output. */ | 64 | /* The terminal to use for low-level output. */ |
| 65 | struct tty_output * current_tty; | 65 | struct tty_display_info *current_tty; |
| 66 | 66 | ||
| 67 | int | 67 | int |
| 68 | cmputc (c) | 68 | cmputc (c) |
| @@ -135,7 +135,7 @@ addcol (tty, n) { | |||
| 135 | * after we reach the last column; this takes us to a known state. | 135 | * after we reach the last column; this takes us to a known state. |
| 136 | */ | 136 | */ |
| 137 | void | 137 | void |
| 138 | cmcheckmagic (struct tty_output *tty) | 138 | cmcheckmagic (struct tty_display_info *tty) |
| 139 | { | 139 | { |
| 140 | if (curX (tty) == FrameCols (tty)) | 140 | if (curX (tty) == FrameCols (tty)) |
| 141 | { | 141 | { |
| @@ -160,7 +160,7 @@ cmcheckmagic (struct tty_output *tty) | |||
| 160 | */ | 160 | */ |
| 161 | 161 | ||
| 162 | void | 162 | void |
| 163 | cmcostinit (struct tty_output *tty) | 163 | cmcostinit (struct tty_display_info *tty) |
| 164 | { | 164 | { |
| 165 | char *p; | 165 | char *p; |
| 166 | 166 | ||
| @@ -200,7 +200,8 @@ cmcostinit (struct tty_output *tty) | |||
| 200 | */ | 200 | */ |
| 201 | 201 | ||
| 202 | static int | 202 | static int |
| 203 | calccost (struct tty_output *tty, int srcy, int srcx, int dsty, int dstx, int doit) | 203 | calccost (struct tty_display_info *tty, |
| 204 | int srcy, int srcx, int dsty, int dstx, int doit) | ||
| 204 | { | 205 | { |
| 205 | register int deltay, | 206 | register int deltay, |
| 206 | deltax, | 207 | deltax, |
| @@ -336,7 +337,7 @@ losecursor () | |||
| 336 | 337 | ||
| 337 | void | 338 | void |
| 338 | cmgoto (tty, row, col) | 339 | cmgoto (tty, row, col) |
| 339 | struct tty_output *tty; | 340 | struct tty_display_info *tty; |
| 340 | int row, col; | 341 | int row, col; |
| 341 | { | 342 | { |
| 342 | int homecost, | 343 | int homecost, |
| @@ -441,7 +442,7 @@ cmgoto (tty, row, col) | |||
| 441 | */ | 442 | */ |
| 442 | 443 | ||
| 443 | void | 444 | void |
| 444 | Wcm_clear (struct tty_output *tty) | 445 | Wcm_clear (struct tty_display_info *tty) |
| 445 | { | 446 | { |
| 446 | bzero (tty->Wcm, sizeof (struct cm)); | 447 | bzero (tty->Wcm, sizeof (struct cm)); |
| 447 | UP = 0; | 448 | UP = 0; |
| @@ -456,7 +457,7 @@ Wcm_clear (struct tty_output *tty) | |||
| 456 | */ | 457 | */ |
| 457 | 458 | ||
| 458 | int | 459 | int |
| 459 | Wcm_init (struct tty_output *tty) | 460 | Wcm_init (struct tty_display_info *tty) |
| 460 | { | 461 | { |
| 461 | #if 0 | 462 | #if 0 |
| 462 | if (tty->Wcm->cm_abs && !tty->Wcm->cm_ds) | 463 | if (tty->Wcm->cm_abs && !tty->Wcm->cm_ds) |