diff options
author | james <> | 2008-03-03 06:04:42 +0000 |
---|---|---|
committer | james <> | 2008-03-03 06:04:42 +0000 |
commit | f2c620137fa5290d913373e5579a97f0fee25fa3 (patch) | |
tree | dfbbe3562ae58e8f540a92654cb4f4d7323d59d7 /src/crt.c | |
parent | 800cb4bdfb56dcd606216788fb023fcc23fb69bf (diff) | |
download | sympathy-f2c620137fa5290d913373e5579a97f0fee25fa3.tar.gz sympathy-f2c620137fa5290d913373e5579a97f0fee25fa3.tar.bz2 sympathy-f2c620137fa5290d913373e5579a97f0fee25fa3.zip |
*** empty log message ***
Diffstat (limited to 'src/crt.c')
-rw-r--r-- | src/crt.c | 37 |
1 files changed, 22 insertions, 15 deletions
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.17 2008/03/03 06:04:42 james + * *** empty log message *** + * * Revision 1.16 2008/03/02 10:37:56 james * *** empty log message *** * @@ -68,14 +71,16 @@ crt_erase (CRT * c, CRT_Pos s, CRT_Pos e, int ea, int color) CRT_CA *ps = &c->screen[CRT_ADDR_POS (&s)]; CRT_CA *pe = &c->screen[CRT_ADDR_POS (&e)]; - while (ps <= pe) { - ps->chr = ' '; - if (ea) { - ps->attr = CRT_ATTR_NORMAL; - ps->color = color; + while (ps <= pe) + { + ps->chr = ' '; + if (ea) + { + ps->attr = CRT_ATTR_NORMAL; + ps->color = color; + } + ps++; } - ps++; - } } @@ -117,10 +122,11 @@ crt_scroll_up (CRT * c, CRT_Pos s, CRT_Pos e, int ea, int color) p = CRT_ADDR_POS (&s); - while (n--) { - memcpy (&c->screen[p], &c->screen[p + CRT_COLS], l); - p += CRT_COLS; - } + while (n--) + { + memcpy (&c->screen[p], &c->screen[p + CRT_COLS], l); + p += CRT_COLS; + } s.y = e.y; crt_erase (c, s, e, ea, color); @@ -151,10 +157,11 @@ crt_scroll_down (CRT * c, CRT_Pos s, CRT_Pos e, int ea, int color) p = CRT_ADDR_POS (&e); - while (n--) { - p -= CRT_COLS; - memcpy (&c->screen[p], &c->screen[p - CRT_COLS], l); - } + while (n--) + { + p -= CRT_COLS; + memcpy (&c->screen[p], &c->screen[p - CRT_COLS], l); + } e.y = s.y; crt_erase (c, s, e, ea, color); |