/*
* $Log$
+ * Revision 1.11 2008/02/23 11:48:37 james
+ * *** empty log message ***
+ *
+ * Revision 1.10 2008/02/22 17:07:00 james
+ * *** empty log message ***
+ *
* Revision 1.9 2008/02/07 13:22:51 james
* *** empty log message ***
*
#include "project.h"
void
-crt_erase (CRT * c, CRT_Pos s, CRT_Pos e, int ea)
+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)];
if (ea)
{
ps->attr = CRT_ATTR_NORMAL;
- ps->color = CRT_COLOR_NORMAL;
+ ps->color = color;
}
ps++;
}
CRT_Pos e = { CRT_COLS - 1, CRT_ROWS - 1 };
int i;
- crt_erase (c, s, e, 1);
+ crt_erase (c, s, e, 1, CRT_COLOR_NORMAL);
c->sh.dir = 0;
}
void
-crt_scroll_up (CRT * c, CRT_Pos s, CRT_Pos e, int ea)
+crt_scroll_up (CRT * c, CRT_Pos s, CRT_Pos e, int ea, int color)
{
int l, n;
int p;
}
s.y = e.y;
- crt_erase (c, s, e, ea);
+ crt_erase (c, s, e, ea, color);
}
void
-crt_scroll_down (CRT * c, CRT_Pos s, CRT_Pos e, int ea)
+crt_scroll_down (CRT * c, CRT_Pos s, CRT_Pos e, int ea, int color)
{
int l, n;
int p;
}
e.y = s.y;
- crt_erase (c, s, e, ea);
+ crt_erase (c, s, e, ea, color);
}