4 * Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
9 static char rcsid[] = "$Id$";
13 * Revision 1.1 2008/02/03 23:31:25 james
14 * *** empty log message ***
24 for (i=0;i<CRT_CELS;++i) {
26 c->screen[i].chr=CRT_ATTR_NORMAL;
30 void crt_reset(CRT *c)
39 void crt_insert(CRT *c,CRT_CA ca)
41 if (c->pos.x<0) c->pos.x=0;
42 if (c->pos.x>=CRT_COLS) c->pos.x=CRT_COLS-1;
43 if (c->pos.y<0) c->pos.y=0;
44 if (c->pos.y>=CRT_ROWS) c->pos.y=CRT_ROWS-1;
46 crt->screen[CRT_ADDR(c->pos.y,c->pos.x)]=ca;