more image calc fixes...
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 6 Nov 2011 18:08:13 +0000 (18:08 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 6 Nov 2011 18:08:13 +0000 (18:08 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/e_dbus@64839 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/notification/notification.c

index 80e8844..2e23aaa 100644 (file)
@@ -391,11 +391,9 @@ e_notification_image_init(E_Notification_Image *img, Evas_Object *obj)
         img->width = img->height = 0;
         return EINA_FALSE;
      }
-   img->has_alpha = !!evas_object_image_alpha_get(obj);
-   img->channels = img->has_alpha ? 4 : 3;
+   img->has_alpha = 1;
+   img->channels = 4;
    img->rowstride = evas_object_image_stride_get(obj);
-   if (img->rowstride == 4 * img->width)
-     img->rowstride = img->channels * img->width;
    if (rgb) evas_object_image_data_set(obj, img->data);
    return EINA_TRUE;
 }