Enlightenment CVS committal

Author  : codewarrior
Project : e17
Module  : proto

Dir     : e17/proto/enterminus/src/bin


Modified Files:
        handlers.c ui.c 


Log Message:
fixes to clear and cursor
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/enterminus/src/bin/handlers.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- handlers.c  25 Feb 2005 09:21:26 -0000      1.9
+++ handlers.c  25 Feb 2005 10:00:40 -0000      1.10
@@ -8,7 +8,7 @@
    Ecore_Event *event;
    
    c = term_tcanvas_data_pop(term);
-   for(len = 0; c != '\007'; len++) {      
+   for(len = 0; c != '\007' &&  len < 512; len++) {      
       buf[len] = c;      
       c = term_tcanvas_data_pop(term);
    }
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/enterminus/src/bin/ui.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- ui.c        25 Feb 2005 09:21:26 -0000      1.21
+++ ui.c        25 Feb 2005 10:00:40 -0000      1.22
@@ -124,6 +124,10 @@
       }
       term->tcanvas->changed_rows[i1] = 0;
    }
+   /* display cursor, note: this is still sort of a hack */
+   evas_object_move(term->cursor.shape,
+                   term->cur_col*term->font.width,
+                   term->cur_row*term->font.height);   
    return 1;
 }
 
@@ -259,8 +263,8 @@
    y2 += term->tcanvas->scroll_region_start;
 
    DPRINT((stderr, "Clearing: %d %d, %d %d\n", x1, y1, x2, y2));
-   for (i = y1; i < y2; i++) {
-      for (j = x1; j < x2; j++) {
+   for (i = y1; i <= y2; i++) {
+      for (j = x1; j <= x2; j++) {
         x = i;
         if (x >= term->tcanvas->scroll_size)
            x -= term->tcanvas->scroll_size;




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to