diff options
| author | james <> | 2008-02-07 13:22:51 +0000 | 
|---|---|---|
| committer | james <> | 2008-02-07 13:22:51 +0000 | 
| commit | e453acb29e1198b939e55d379b7f2c81c740f9a6 (patch) | |
| tree | c8a23cdb4b1dec11cdf5060fbe9fd80588507c43 /src/crt.c | |
| parent | 31ebf810fa4af6fc58fd863235d0a906db0948ad (diff) | |
| download | sympathy-e453acb29e1198b939e55d379b7f2c81c740f9a6.tar.gz sympathy-e453acb29e1198b939e55d379b7f2c81c740f9a6.tar.bz2 sympathy-e453acb29e1198b939e55d379b7f2c81c740f9a6.zip  | |
*** empty log message ***
Diffstat (limited to 'src/crt.c')
| -rw-r--r-- | src/crt.c | 30 | 
1 files changed, 17 insertions, 13 deletions
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";  /*   * $Log$ + * Revision 1.9  2008/02/07 13:22:51  james + * *** empty log message *** + *   * Revision 1.8  2008/02/07 13:19:48  james   * *** empty log message ***   * @@ -47,10 +50,11 @@ crt_erase (CRT * c, CRT_Pos s, CRT_Pos e, int ea)    while (ps <= pe)      {        ps->chr = ' '; -      if (ea){ -        ps->attr = CRT_ATTR_NORMAL; -        ps->color = CRT_COLOR_NORMAL; -	} +      if (ea) +        { +          ps->attr = CRT_ATTR_NORMAL; +          ps->color = CRT_COLOR_NORMAL; +        }        ps++;      } @@ -64,7 +68,7 @@ crt_cls (CRT * c)    int i;    crt_erase (c, s, e, 1); -  c->sh.dir=0; +  c->sh.dir = 0;  }  void @@ -77,9 +81,9 @@ crt_scroll_up (CRT * c, CRT_Pos s, CRT_Pos e, int ea)    s.x = 0;    e.x = CRT_COLS - 1; -  c->sh.s=s; -  c->sh.e=e; -  c->sh.dir=-1; +  c->sh.s = s; +  c->sh.e = e; +  c->sh.dir = -1;    l = e.x - s.x;    l++; @@ -110,9 +114,9 @@ crt_scroll_down (CRT * c, CRT_Pos s, CRT_Pos e, int ea)    s.x = 0;    e.x = CRT_COLS - 1; -  c->sh.s=s; -  c->sh.e=e; -  c->sh.dir=1; +  c->sh.s = s; +  c->sh.e = e; +  c->sh.dir = 1;    l = e.x - s.x;    l++; @@ -142,7 +146,7 @@ crt_reset (CRT * c)    c->pos.x = 0;    c->pos.y = 0;    c->hide_cursor = 1; -  c->sh.dir=0; +  c->sh.dir = 0;  }  void @@ -159,5 +163,5 @@ crt_insert (CRT * c, CRT_CA ca)    c->screen[CRT_ADDR (c->pos.y, c->pos.x)] = ca; -  c->sh.dir=0; +  c->sh.dir = 0;  }  | 
