Enlightenment CVS committal Author : codewarrior Project : e17 Module : proto
Dir : e17/proto/enterminus/src/bin Modified Files: smart.c ui.c Log Message: 1- Fixed object disappearence when we resize 2- General cleanups =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/enterminus/src/bin/smart.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- smart.c 11 Feb 2005 13:07:56 -0000 1.2 +++ smart.c 11 Feb 2005 23:27:30 -0000 1.3 @@ -126,6 +126,9 @@ void term_smart_move(Evas_Object *o, Evas_Coord x, Evas_Coord y) { } +/* TODO: + * We need to show evas objects and set their layers after a resize + */ void term_smart_resize(Evas_Object *o, Evas_Coord w, Evas_Coord h) { int x, y, old_size; int num_chars_w, num_chars_h; @@ -188,7 +191,7 @@ for(x = 0; x <= term->tcanvas->rows * term->tcanvas->scroll_size; x++) term->tcanvas->changed_rows[x] = 0; - if((term->grid = realloc(term->grid, term->tcanvas->cols * + if((term->grid = realloc(term->grid, term->tcanvas->cols * term->tcanvas->rows * sizeof(Term_EGlyph))) == NULL) { fprintf(stderr,"Fatal: Couldnt not reallocate evas grid!\n"); @@ -208,7 +211,6 @@ } term_term_bg_set(term, DATADIR"black.png"); - } void term_smart_show(Evas_Object *o) { =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/enterminus/src/bin/ui.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- ui.c 11 Feb 2005 13:07:56 -0000 1.11 +++ ui.c 11 Feb 2005 23:27:40 -0000 1.12 @@ -30,7 +30,7 @@ evas_object_layer_set(term->bg, 0); evas_object_image_fill_set(term->bg, 0, 0, term->w, term->h); evas_object_focus_set(term->bg, 1); - + evas_object_show(term->bg); } /* see what changed chars we have, redraw */ @@ -117,8 +117,10 @@ break; } - + /* The Layer setting and showing functions need to go away */ + evas_object_layer_set(gl->text,1); evas_object_move(gl->text, j*term->font.width, i*term->font.height); + evas_object_show(gl->text); tgl->changed = 0; } if(i + term->tcanvas->scroll_region_start > (term->tcanvas->rows - 1)*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