From: Enlightenment S. <no-...@en...> - 2011-11-06 17:55:38
|
Log: safety for row stride calc failure Author: discomfitor Date: 2011-11-06 09:55:31 -0800 (Sun, 06 Nov 2011) New Revision: 64838 Trac: http://trac.enlightenment.org/e/changeset/64838 Modified: trunk/e_dbus/src/lib/notification/notification.c Modified: trunk/e_dbus/src/lib/notification/notification.c =================================================================== --- trunk/e_dbus/src/lib/notification/notification.c 2011-11-06 17:12:38 UTC (rev 64837) +++ trunk/e_dbus/src/lib/notification/notification.c 2011-11-06 17:55:31 UTC (rev 64838) @@ -394,6 +394,8 @@ img->has_alpha = !!evas_object_image_alpha_get(obj); img->channels = img->has_alpha ? 4 : 3; 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; } |