aboutsummaryrefslogtreecommitdiffstats
path: root/src/crt.c
diff options
context:
space:
mode:
authorjames <>2008-03-02 10:37:56 +0000
committerjames <>2008-03-02 10:37:56 +0000
commitf23e17f2eac3f506afe9a1e44302112cc363b59f (patch)
tree2c8ced74467ecd189daee8e9b38238f7a0894de4 /src/crt.c
parent77b31c3e51edfefc9b82b7ba31944c4161997ef4 (diff)
downloadsympathy-f23e17f2eac3f506afe9a1e44302112cc363b59f.tar.gz
sympathy-f23e17f2eac3f506afe9a1e44302112cc363b59f.tar.bz2
sympathy-f23e17f2eac3f506afe9a1e44302112cc363b59f.zip
*** empty log message ***
Diffstat (limited to 'src/crt.c')
-rw-r--r--src/crt.c37
1 files changed, 18 insertions, 19 deletions
diff --git a/src/crt.c b/src/crt.c
index 7e7c647..aacdc8b 100644
--- a/src/crt.c
+++ b/src/crt.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.16 2008/03/02 10:37:56 james
+ * *** empty log message ***
+ *
* Revision 1.15 2008/02/27 09:42:21 james
* *** empty log message ***
*
@@ -65,16 +68,14 @@ 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;
- }
- ps++;
+ while (ps <= pe) {
+ ps->chr = ' ';
+ if (ea) {
+ ps->attr = CRT_ATTR_NORMAL;
+ ps->color = color;
}
+ ps++;
+ }
}
@@ -116,11 +117,10 @@ 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,11 +151,10 @@ 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);