forked from enlightenment/efl
Evas: Default framespace to zero on new canvas creation.
Some cleanup of commented out code. Fix some formatting. SVN revision: 66538
This commit is contained in:
parent
f1e9715711
commit
810cf11241
|
@ -118,12 +118,16 @@ evas_new(void)
|
||||||
e->output.render_method = RENDER_METHOD_INVALID;
|
e->output.render_method = RENDER_METHOD_INVALID;
|
||||||
e->viewport.w = 1;
|
e->viewport.w = 1;
|
||||||
e->viewport.h = 1;
|
e->viewport.h = 1;
|
||||||
|
e->framespace.x = 0;
|
||||||
|
e->framespace.y = 0;
|
||||||
|
e->framespace.w = 0;
|
||||||
|
e->framespace.h = 0;
|
||||||
e->hinting = EVAS_FONT_HINTING_BYTECODE;
|
e->hinting = EVAS_FONT_HINTING_BYTECODE;
|
||||||
e->name_hash = eina_hash_string_superfast_new(NULL);
|
e->name_hash = eina_hash_string_superfast_new(NULL);
|
||||||
eina_clist_init(&e->calc_list);
|
eina_clist_init(&e->calc_list);
|
||||||
eina_clist_init(&e->calc_done);
|
eina_clist_init(&e->calc_done);
|
||||||
|
|
||||||
#define EVAS_ARRAY_SET(E, Array) \
|
#define EVAS_ARRAY_SET(E, Array) \
|
||||||
eina_array_step_set(&E->Array, sizeof (E->Array), 4096);
|
eina_array_step_set(&E->Array, sizeof (E->Array), 4096);
|
||||||
|
|
||||||
EVAS_ARRAY_SET(e, delete_objects);
|
EVAS_ARRAY_SET(e, delete_objects);
|
||||||
|
@ -419,18 +423,12 @@ evas_output_framespace_set(Evas *e, Evas_Coord x, Evas_Coord y, Evas_Coord w, Ev
|
||||||
(w == e->framespace.w) && (h == e->framespace.h)) return;
|
(w == e->framespace.w) && (h == e->framespace.h)) return;
|
||||||
if (w <= 0) return;
|
if (w <= 0) return;
|
||||||
if (h <= 0) return;
|
if (h <= 0) return;
|
||||||
/* if ((x != 0) || (y != 0)) */
|
|
||||||
/* { */
|
|
||||||
/* ERR("Compat error. viewport x,y != 0,0 not supported"); */
|
|
||||||
/* x = 0; */
|
|
||||||
/* y = 0; */
|
|
||||||
/* } */
|
|
||||||
e->framespace.x = x;
|
e->framespace.x = x;
|
||||||
e->framespace.y = y;
|
e->framespace.y = y;
|
||||||
e->framespace.w = w;
|
e->framespace.w = w;
|
||||||
e->framespace.h = h;
|
e->framespace.h = h;
|
||||||
e->framespace.changed = 1;
|
e->framespace.changed = 1;
|
||||||
/* e->output_validity++; */
|
e->output_validity++;
|
||||||
e->changed = 1;
|
e->changed = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue