size_t visual_pos;
#endif
Evas_Textblock_Item_Type type;
+
Evas_Coord adv, x, w, h;
Evas_Coord yoff;
Eina_Bool merge : 1; /* Indicates whether this
_markup_get_text_append(Eina_Strbuf *txt, const Eina_Unicode *text)
{
char *base = eina_unicode_unicode_to_utf8(text, NULL);
+
if (!base) return;
_markup_get_text_utf8_append(txt, base);
ENFN->context_color_set(output, context, 0, 0, 0, 0);
ca = cr = cg = cb = 0;
+
#define ITEM_WALK() \
EINA_INLIST_FOREACH(start, par) \
{ \
/* Draw background */
DRAW_FORMAT(backing, 0, ln->h);
-
}
ITEM_WALK_END();
int shad_dst, shad_sz, dx, dy, haveshad;
Evas_Object_Textblock_Text_Item *ti;
Evas_Coord yoff;
+
ti = (itr->type == EVAS_TEXTBLOCK_ITEM_TEXT) ? _ITEM_TEXT(itr) : NULL;
if (!ti) continue;
{
Evas_Object_Textblock_Text_Item *ti;
Evas_Coord yoff;
+
ti = (itr->type == EVAS_TEXTBLOCK_ITEM_TEXT) ? _ITEM_TEXT(itr) : NULL;
if (!ti) continue;
{
Evas_Object_Textblock_Text_Item *ti;
Evas_Coord yoff;
+
ti = (itr->type == EVAS_TEXTBLOCK_ITEM_TEXT) ? _ITEM_TEXT(itr) : NULL;
if (!ti) continue;
break;
case EVAS_FILTER_BLUR_MOTION:
default:
- CRIT("Not implemented yet!");
+ CRI("Not implemented yet!");
goto fail;
}
}
// FIXME: Must ensure in != out
- if (in == out) CRIT("Not acceptable");
- if (bumpmap == out) CRIT("Not acceptable");
+ if (in == out) CRI("Not acceptable");
+ if (bumpmap == out) CRI("Not acceptable");
cmd = _command_new(ctx, EVAS_FILTER_MODE_BUMP, in, bumpmap, out);
if (!cmd) goto end;
// FIXME: Must call engine function, not CPU directly.
if (strncmp(cmd->ctx->evas->engine.module->definition->name, "software", 8))
- CRIT("Only the software engine is supported for now.");
+ CRI("Only the software engine is supported for now.");
switch (cmd->mode)
{
func = evas_filter_bump_map_cpu_func_get(cmd);
break;
default:
- CRIT("Invalid filter mode.");
+ CRI("Invalid filter mode.");
break;
}
if (!func)
{
- CRIT("No function to process this filter!");
+ CRI("No function to process this filter!");
return EINA_FALSE;
}
else if (cmd->blur.dy)
return _box_blur_vert_apply_alpha;
}
- CRIT("Unsupported operation: mixing RGBA and Alpha surfaces.");
+ CRI("Unsupported operation: mixing RGBA and Alpha surfaces.");
return NULL;
case EVAS_FILTER_BLUR_GAUSSIAN:
if (!cmd->input->alpha_only && !cmd->output->alpha_only)
else if (cmd->blur.dy)
return _gaussian_blur_vert_apply_alpha;
}
- CRIT("Unsupported operation: mixing RGBA and Alpha surfaces.");
+ CRI("Unsupported operation: mixing RGBA and Alpha surfaces.");
return NULL;
default:
- CRIT("Not implemented yet!");
+ CRI("Not implemented yet!");
return NULL;
}
}
{
(void) cmd;
- CRIT("Not implemented yet.");
+ CRI("Not implemented yet.");
return EINA_FALSE;
}
if (cmd->input->alpha_only && cmd->output->alpha_only)
return _filter_curve_cpu_alpha;
- CRIT("Incompatible image formats");
+ CRI("Incompatible image formats");
return NULL;
}
if (cmd->input->alpha_only != cmd->output->alpha_only)
{
- CRIT("Invalid color formats");
+ CRI("Invalid color formats");
return NULL;
}
if (typestr && !strcasecmp(typestr, "motion"))
{
- CRIT("Motion blur not implemented yet!");
+ CRI("Motion blur not implemented yet!");
/*
instr->pad.l = (rx < 0) ? (-rx) : 0;
instr->pad.r = (rx > 0) ? (rx) : 0;
*/
//instr->type = EVAS_FILTER_MODE_CURVE;
- CRIT("Not implemented yet");
+ CRI("Not implemented yet");
return EINA_FALSE;
}
break;
#endif
case EVAS_FILTER_MODE_CURVE:
- CRIT("Not implemented yet");
+ CRI("Not implemented yet");
return -1;
case EVAS_FILTER_MODE_BUFFER:
default:
- CRIT("Invalid instruction type: %d", instr->type);
+ CRI("Invalid instruction type: %d", instr->type);
return -1;
}