aboutsummaryrefslogtreecommitdiffstats
path: root/src/cm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cm.c')
-rw-r--r--src/cm.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/cm.c b/src/cm.c
index 1094e3047d6..74f119d9b68 100644
--- a/src/cm.c
+++ b/src/cm.c
@@ -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. */
65struct tty_output * current_tty; 65struct tty_display_info *current_tty;
66 66
67int 67int
68cmputc (c) 68cmputc (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 */
137void 137void
138cmcheckmagic (struct tty_output *tty) 138cmcheckmagic (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
162void 162void
163cmcostinit (struct tty_output *tty) 163cmcostinit (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
202static int 202static int
203calccost (struct tty_output *tty, int srcy, int srcx, int dsty, int dstx, int doit) 203calccost (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
337void 338void
338cmgoto (tty, row, col) 339cmgoto (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
443void 444void
444Wcm_clear (struct tty_output *tty) 445Wcm_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
458int 459int
459Wcm_init (struct tty_output *tty) 460Wcm_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)