chiark / gitweb /
*** empty log message ***
[sympathy.git] / src / html.c
index 5a0bf4afb7b38fffcf302a3472e074e105e655ee..15ca78254376a94b97a750a4fb7df57d3846e36f 100644 (file)
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
 
 /*
  * $Log$
+ * Revision 1.9  2008/02/27 09:42:22  james
+ * *** empty log message ***
+ *
  * Revision 1.8  2008/02/27 01:52:38  james
  * *** empty log message ***
  *
@@ -156,13 +159,13 @@ html_draw (FILE * f, CRT * c)
 #else
   fprintf (f, "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n");
 #endif
-  for (p.y = 0; p.y < CRT_ROWS; ++p.y)
+  for (p.y = 0; p.y < c->size.y; ++p.y)
     {
       o = CRT_ADDR (p.y, 0);
 #ifndef CSS
       fprintf (f, "<tr>");
 #endif
-      for (p.x = 0; p.x < CRT_COLS; ++p.x, ++o)
+      for (p.x = 0; p.x < c->size.x; ++p.x, ++o)
         {
           html_render (f, c->screen[o]);
         }