Enlightenment CVS committal Author : sebastid Project : e17 Module : proto
Dir : e17/proto/enterminus/src/bin Modified Files: smart.c Log Message: Fix. =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/enterminus/src/bin/smart.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- smart.c 25 Feb 2005 11:06:06 -0000 1.8 +++ smart.c 25 Feb 2005 11:16:38 -0000 1.9 @@ -210,6 +210,7 @@ } else { /* Change at the top */ term->tcanvas->scroll_region_start += size; + term->cur_row -= size; if (term->tcanvas->scroll_region_start < 0) term->tcanvas->scroll_region_start += term->tcanvas->scroll_size; else if (term->tcanvas->scroll_region_start >= term->tcanvas->scroll_size) @@ -221,8 +222,9 @@ * sizeof(Term_TGlyph)); for (x = 1; x < term->tcanvas->scroll_size; x++) term->tcanvas->grid[x] = &term->tcanvas->grid[x - 1][num_chars_w]; - memset(term->tcanvas->grid[0], 0, num_chars_w * term->tcanvas->scroll_size * sizeof(Term_TGlyph)); /* FIXME: Initialize new characters if we get bigger */ + /* FIXME: Keep old text! */ + memset(term->tcanvas->grid[0], 0, num_chars_w * term->tcanvas->scroll_size * sizeof(Term_TGlyph)); /* Mark all visible characters changed */ if (term->tcanvas->scroll_region_start < term->tcanvas->scroll_region_end) { @@ -301,13 +303,13 @@ evas_object_layer_set(gl->bg, 1); #endif + term->tcanvas->cols = num_chars_w; + term->tcanvas->rows = num_chars_h; + if (ioctl(term->cmd_fd.sys, TIOCSWINSZ, get_font_dim(term)) < 0) { fprintf(stderr, "Couldn't set window size: %m\n"); } - term->tcanvas->cols = num_chars_w; - term->tcanvas->rows = num_chars_h; - term->w = term->font.width * term->tcanvas->cols; term->h = term->font.height * term->tcanvas->rows; ------------------------------------------------------- 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