{
Eina_List *l, *ll;
Shpix *sp;
- int shw, shh, bsz, shx, shy;
+ int shw, shh, bsz;
int x1, y1, x2, y2;
if ((!rects) && (sh->toosmall))
sh->square = 1;
else
sh->square = 0;
-
- shx = sh->ds->conf->shadow_x;
- shy = sh->ds->conf->shadow_y;
+
shw = sh->w;
shh = sh->h;
bsz = sh->ds->conf->blur_size;
Shadow_Object *so;
so = ll->data;
- evas_object_color_set(so->obj,
- 0, 0, 0,
- 255 * ds->conf->shadow_darkness);
+ evas_object_color_set(so->obj, 0, 0, 0, 255 * v);
}
}
else
{
for (i = 0; i < 4; i++)
- evas_object_color_set(sh->object[i],
- 0, 0, 0,
- 255 * ds->conf->shadow_darkness);
+ evas_object_color_set(sh->object[i], 0, 0, 0, 255 * v);
}
}
}
if (blur < 0) blur = 0;
- if (ds->conf->shadow_x >= ds->conf->blur_size)
- ds->conf->shadow_x = ds->conf->blur_size - 1;
- if (ds->conf->shadow_y >= ds->conf->blur_size)
- ds->conf->shadow_y = ds->conf->blur_size - 1;
+ if (ds->conf->shadow_x >= blur)
+ ds->conf->shadow_x = blur - 1;
+ if (ds->conf->shadow_y >= blur)
+ ds->conf->shadow_y = blur - 1;
_ds_blur_init(ds);
for (l = ds->shadows; l; l = l->next)
{
usefull = 0;
l2 -= x2 - pix_w + 1;
- x2 = pix_w - 1;
}
pp = pix + x1 + (ry * pix_w);
p1++;
}
#endif
- *p2 = sum / full;
+ if (full > 0)
+ *p2 = sum / full;
p2 += pix_w;
pp += pix_w;
}
sum += (int)(*p1) * (int)wt;
p1++;
}
- *p2 = sum / weight;
+ if (weight > 0)
+ *p2 = sum / weight;
p2 += pix_w;
pp += pix_w;
}
{
usefull = 0;
l2 -= y2 - pix_h + 1;
- y2 = pix_h - 1;
}
pp = pix + (y1 * pix_w) + rx;
p1 += pix_w;
}
#endif
- *p2 = sum / full;
+ if (full > 0)
+ *p2 = sum / full;
p2++;
pp++;
}
sum += (int)(*p1) * wt;
p1 += pix_w;
}
- *p2 = sum / weight;
+ if (weight > 0)
+ *p2 = sum / weight;
p2++;
pp++;
}
*x2 = p2;
return 1;
- tnum = 0;
+ (void)tnum;
}
static void