summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-08-25 11:24:19 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-08-25 13:21:25 +0100
commit76701f606c82727c56e614dd68fdd65a5ce8d1e1 (patch)
treec011362629dddbd2218fe2779834e5deb1c915b7
parente0888cbbefaf512649ff0e2da56ee9688f151623 (diff)
evas - image+proxy - fix enum cast warnings with casts - checked
-rw-r--r--src/lib/evas/canvas/efl_canvas_image.c8
-rw-r--r--src/lib/evas/canvas/efl_canvas_proxy.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_image.c b/src/lib/evas/canvas/efl_canvas_image.c
index 822c94600e..d78f1f675b 100644
--- a/src/lib/evas/canvas/efl_canvas_image.c
+++ b/src/lib/evas/canvas/efl_canvas_image.c
@@ -700,14 +700,14 @@ _image_pixels_set(Evas_Object_Protected_Data *obj,
700 // note: we release all planes at once 700 // note: we release all planes at once
701 if (o->engine_data) 701 if (o->engine_data)
702 ENFN->image_free(ENC, o->engine_data); 702 ENFN->image_free(ENC, o->engine_data);
703 o->engine_data = ENFN->image_new_from_copied_data(ENC, w, h, NULL, o->cur->has_alpha, cspace); 703 o->engine_data = ENFN->image_new_from_copied_data(ENC, w, h, NULL, o->cur->has_alpha, (Evas_Colorspace)cspace);
704 } 704 }
705 else 705 else
706 { 706 {
707 o->buffer_data_set = EINA_TRUE; 707 o->buffer_data_set = EINA_TRUE;
708 o->engine_data = ENFN->image_data_slice_add(ENC, o->engine_data, 708 o->engine_data = ENFN->image_data_slice_add(ENC, o->engine_data,
709 slice, copy, w, h, stride, 709 slice, copy, w, h, stride,
710 cspace, plane, o->cur->has_alpha); 710 (Evas_Colorspace)cspace, plane, o->cur->has_alpha);
711 } 711 }
712 712
713 if (!o->engine_data) 713 if (!o->engine_data)
@@ -735,7 +735,7 @@ _image_pixels_set(Evas_Object_Protected_Data *obj,
735 { 735 {
736 cur->f = NULL; 736 cur->f = NULL;
737 cur->key = NULL; 737 cur->key = NULL;
738 cur->cspace = cspace; 738 cur->cspace = (Evas_Colorspace)cspace;
739 cur->image.w = w; 739 cur->image.w = w;
740 cur->image.h = h; 740 cur->image.h = h;
741 cur->image.stride = int_stride; 741 cur->image.stride = int_stride;
@@ -843,7 +843,7 @@ _efl_canvas_image_efl_gfx_buffer_buffer_map(Eo *eo_obj, void *_pd EINA_UNUSED,
843 goto end; 843 goto end;
844 } 844 }
845 845
846 if (ENFN->image_data_map(ENC, &o->engine_data, &slice, &s, x, y, w, h, cspace, mode, plane)) 846 if (ENFN->image_data_map(ENC, &o->engine_data, &slice, &s, x, y, w, h, (Evas_Colorspace)cspace, mode, plane))
847 { 847 {
848 DBG("map(%p, %d,%d %dx%d plane:%d) -> " EINA_SLICE_FMT, 848 DBG("map(%p, %d,%d %dx%d plane:%d) -> " EINA_SLICE_FMT,
849 eo_obj, x, y, w, h, plane, EINA_SLICE_PRINT(slice)); 849 eo_obj, x, y, w, h, plane, EINA_SLICE_PRINT(slice));
diff --git a/src/lib/evas/canvas/efl_canvas_proxy.c b/src/lib/evas/canvas/efl_canvas_proxy.c
index c8368eaed6..9f626868e9 100644
--- a/src/lib/evas/canvas/efl_canvas_proxy.c
+++ b/src/lib/evas/canvas/efl_canvas_proxy.c
@@ -322,7 +322,7 @@ _efl_canvas_proxy_efl_gfx_buffer_buffer_map(Eo *eo_obj, void *_pd EINA_UNUSED,
322 goto end; 322 goto end;
323 } 323 }
324 324
325 if (ENFN->image_data_map(ENC, &o->engine_data, &slice, &s, x, y, w, h, cspace, mode, plane)) 325 if (ENFN->image_data_map(ENC, &o->engine_data, &slice, &s, x, y, w, h, (Evas_Colorspace)cspace, mode, plane))
326 { 326 {
327 DBG("map(%p, %d,%d %dx%d plane:%d) -> " EINA_SLICE_FMT, 327 DBG("map(%p, %d,%d %dx%d plane:%d) -> " EINA_SLICE_FMT,
328 eo_obj, x, y, w, h, plane, EINA_SLICE_PRINT(slice)); 328 eo_obj, x, y, w, h, plane, EINA_SLICE_PRINT(slice));