From: nash Date: Thu, 25 Oct 2007 04:52:39 +0000 (+0000) Subject: Fix two bugs: X-Git-Tag: submit/2.0alpha-wayland/20121127.222018~427 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=055ed5f6a5ca6fb0521eb355a7b192f6ac6c0ef8;p=profile%2Fivi%2Femotion.git Fix two bugs: - Get pixels from the image object not the smart object - Fix typo in if statement git-svn-id: http://svn.enlightenment.org/svn/e/trunk/e17/libs/emotion@32157 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/emotion_smart.c b/src/lib/emotion_smart.c index b081747..db9d8b5 100644 --- a/src/lib/emotion_smart.c +++ b/src/lib/emotion_smart.c @@ -1060,7 +1060,7 @@ _pixels_get(void *data, Evas_Object *obj) } else if (format == EMOTION_FORMAT_BGRA) { - if (sd->module->bgra_data_get(sd->video, &bgra_data)); + if (sd->module->bgra_data_get(sd->video, &bgra_data)) { evas_object_image_data_set(obj, bgra_data); // printf("pix get set 0 (3)\n"); @@ -1163,7 +1163,7 @@ _smart_add(Evas_Object * obj) sd->ratio = 1.0; sd->spu.button = -1; evas_object_image_alpha_set(sd->obj, 0); - pixel = evas_object_image_data_get(obj, 1); + pixel = evas_object_image_data_get(sd->obj, 1); if (pixel) { *pixel = 0xff000000;