chiark / gitweb /
*** empty log message ***
[sympathy.git] / src / crt.c
index 693e00384c55009b88ac019ac21f561922ea0b2e..7e7c647dd96410a131396334a6a06448c4a4f5fc 100644 (file)
--- a/src/crt.c
+++ b/src/crt.c
@@ -10,6 +10,15 @@ static char rcsid[] = "$Id$";
 
 /*
  * $Log$
+ * Revision 1.15  2008/02/27 09:42:21  james
+ * *** empty log message ***
+ *
+ * Revision 1.14  2008/02/27 00:27:21  james
+ * *** empty log message ***
+ *
+ * Revision 1.13  2008/02/26 23:56:12  james
+ * *** empty log message ***
+ *
  * Revision 1.12  2008/02/26 23:23:17  james
  * *** empty log message ***
  *
@@ -138,14 +147,14 @@ crt_scroll_down (CRT * c, CRT_Pos s, CRT_Pos e, int ea, int color)
   l *= sizeof (CRT_CA);
 
   n = e.y - s.y;
-  n++;
+  //n++;
 
   p = CRT_ADDR_POS (&e);
 
   while (n--)
     {
-      memcpy (&c->screen[p], &c->screen[p - CRT_COLS], l);
       p -= CRT_COLS;
+      memcpy (&c->screen[p], &c->screen[p - CRT_COLS], l);
     }
 
   e.y = s.y;
@@ -161,7 +170,8 @@ crt_reset (CRT * c)
   c->pos.x = 0;
   c->pos.y = 0;
   c->hide_cursor = 1;
-  c->width=CRT_COLS;
+  c->size.x = CRT_COLS;
+  c->size.y = CRT_ROWS;
 #if 0
   c->sh.dir = 0;
 #endif