clouseau: refined screenshot get func

Signed-off-by: Aharon Hillel <a.hillel@samsung.com>

SVN revision: 72360
This commit is contained in:
Aharon Hillel 2012-06-18 07:23:28 +00:00 committed by Tom Hacohen
parent d020f94871
commit 069a137b21
1 changed files with 14 additions and 1 deletions

View File

@ -54,7 +54,20 @@ _canvas_bmp_get(Ecore_Evas *ee, Evas_Coord *w_out, Evas_Coord *h_out)
unsigned int *dst;
int bpl = 0, rows = 0, bpp = 0;
Evas_Coord w, h;
Ecore_X_Window xwin = (Ecore_X_Window) ecore_evas_window_get(ee);
/* Check that this window still exists */
Eina_List *eeitr, *ees = ecore_evas_ecore_evas_list_get();
Ecore_Evas *eel;
Eina_Bool found_evas = EINA_FALSE;
EINA_LIST_FOREACH(ees, eeitr, eel)
if (eel == ee)
{
found_evas = EINA_TRUE;
break;
}
Ecore_X_Window xwin = (found_evas) ?
(Ecore_X_Window) ecore_evas_window_get(ee) : 0;
if (!xwin)
{