// ARGB32 is sizeof(int), that is 4 bytes, per pixel
pixels = malloc(width * height * sizeof(int));
- if(unlikely(pixels == NULL))
- {
+ if (unlikely(pixels == NULL)) {
// ERROR: could not allocate canvas pixels!
evas_free(canvas);
return NULL;
einfo->info.alpha_threshold = 0;
einfo->info.func.new_update_region = NULL;
einfo->info.func.free_update_region = NULL;
- evas_engine_info_set(canvas, (Evas_Engine_Info*)einfo);
+ if (unlikely(evas_engine_info_set(canvas,(Evas_Engine_Info*)einfo) == EINA_FALSE)) {
+ PRINTMSG("ERROR: could not set evas engine info!\n");
+ evas_free(canvas);
+ return NULL;
+ }
return canvas;
}
probeBlockStart();
internal_angle = angle;
- runtime_info_get_value_bool(
- RUNTIME_INFO_KEY_AUTO_ROTATION_ENABLED, &autoRotation);
+ if(runtime_info_get_value_bool(
+ RUNTIME_INFO_KEY_AUTO_ROTATION_ENABLED, &autoRotation) < 0)
+ {
+ PRINTMSG("ERROR: could not get auto rotation value!\n");
+ }
if(autoRotation) // rotation is not locked
{