Exactness: Evas now is taken from elm_win_add
Because tsuite_shot_do creates Evas and we cant use evas_new without doing ugly hacks. Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com> SVN revision: 67923
This commit is contained in:
parent
b9406b348a
commit
9ab15c434c
|
@ -183,7 +183,7 @@ tsuite_shot_do(char *name)
|
||||||
|
|
||||||
/* A bit hackish, get the ecore_evas from the Evas canvas */
|
/* A bit hackish, get the ecore_evas from the Evas canvas */
|
||||||
ee_orig = evas_data_attach_get(ts.e);
|
ee_orig = evas_data_attach_get(ts.e);
|
||||||
printf("<%s> ts.e=<%p> ee_orig=<%p>\n", __func__, ts.e, ee_orig);
|
printf("<%s> ts.e=<%p> ee_orig=<%p> file=<%s>\n", __func__, ts.e, ee_orig, filename);
|
||||||
|
|
||||||
ecore_evas_manual_render(ee_orig);
|
ecore_evas_manual_render(ee_orig);
|
||||||
pixels = (void *)ecore_evas_buffer_pixels_get(ee_orig);
|
pixels = (void *)ecore_evas_buffer_pixels_get(ee_orig);
|
||||||
|
@ -259,6 +259,20 @@ ecore_shutdown(void)
|
||||||
return _ecore_shutdown();
|
return _ecore_shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAPI Evas_Object *
|
||||||
|
elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type)
|
||||||
|
{
|
||||||
|
Evas_Object *win;
|
||||||
|
Evas_Object * (* _elm_win_add) (Evas_Object *, const char *, Elm_Win_Type) =
|
||||||
|
dlsym(RTLD_NEXT, "elm_win_add");
|
||||||
|
|
||||||
|
win = _elm_win_add(parent, name, type);
|
||||||
|
ts.e = evas_object_evas_get(win);
|
||||||
|
return win;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* We don't use this in the meantime because a new evas
|
||||||
|
* is allocated at tsuite_shot_do, this changes ts.e
|
||||||
EAPI Evas *
|
EAPI Evas *
|
||||||
evas_new(void)
|
evas_new(void)
|
||||||
{
|
{
|
||||||
|
@ -268,6 +282,7 @@ evas_new(void)
|
||||||
ts.e = _evas_new();
|
ts.e = _evas_new();
|
||||||
return ts.e;
|
return ts.e;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
tsuite_feed_event(void *data)
|
tsuite_feed_event(void *data)
|
||||||
|
|
Loading…
Reference in New Issue