forked from enlightenment/efl
parent
49343b628a
commit
9b7d71df79
|
@ -270,8 +270,7 @@ _blend_gradient(int count, const SW_FT_Span *spans, void *user_data)
|
|||
if (data->type == LinearGradient) fetchfunc = &fetch_linear_gradient;
|
||||
if (data->type == RadialGradient) fetchfunc = &fetch_radial_gradient;
|
||||
|
||||
if (!fetchfunc)
|
||||
return;
|
||||
if (!fetchfunc || !data->raster_buffer->pixels.u32) return;
|
||||
|
||||
comp_func = efl_draw_func_span_get(data->op, data->mul_col, data->gradient->alpha);
|
||||
|
||||
|
|
|
@ -259,6 +259,8 @@ _ector_software_surface_ector_surface_draw_image(Eo *obj EINA_UNUSED,
|
|||
const int pix_stride = pd->rasterizer->fill_data.raster_buffer->stride / 4;
|
||||
|
||||
uint32_t *src = bd->pixels.u32;
|
||||
if (!src) return EINA_FALSE;
|
||||
|
||||
for (unsigned int local_y = 0; local_y < bd->generic->h; local_y++)
|
||||
{
|
||||
uint32_t *dst = pd->rasterizer->fill_data.raster_buffer->pixels.u32 + (x + ((local_y + y) * pix_stride));
|
||||
|
|
Loading…
Reference in New Issue