From e453acb29e1198b939e55d379b7f2c81c740f9a6 Mon Sep 17 00:00:00 2001 From: james <> Date: Thu, 7 Feb 2008 13:22:51 +0000 Subject: *** empty log message *** --- src/crt.c | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) (limited to 'src/crt.c') diff --git a/src/crt.c b/src/crt.c index 67d8835..a9e6e86 100644 --- a/src/crt.c +++ b/src/crt.c @@ -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; } -- cgit v1.2.3