summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-08-25 09:57:35 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-08-25 13:21:25 +0100
commit70d0fcfc9085a588a6bfd81f7fb9259b7543a5a1 (patch)
tree731a9992ef6271db8493a39f5a4b4dd0616c7e4f
parent880973ebcf8f5afe847d18f186c9bfa670766939 (diff)
elm image - zoomable - fix enum warnings with valid casts
-rw-r--r--src/lib/elementary/efl_ui_image_zoomable.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/elementary/efl_ui_image_zoomable.c b/src/lib/elementary/efl_ui_image_zoomable.c
index 9889d8849f..689555180a 100644
--- a/src/lib/elementary/efl_ui_image_zoomable.c
+++ b/src/lib/elementary/efl_ui_image_zoomable.c
@@ -2610,7 +2610,7 @@ _efl_ui_image_zoomable_efl_ui_zoom_zoom_mode_set(Eo *obj, Efl_Ui_Image_Zoomable_
2610{ 2610{
2611 double tz; 2611 double tz;
2612 if (sd->mode == (Elm_Photocam_Zoom_Mode)mode) return; 2612 if (sd->mode == (Elm_Photocam_Zoom_Mode)mode) return;
2613 sd->mode = mode; 2613 sd->mode = (Elm_Photocam_Zoom_Mode)mode;
2614 2614
2615 tz = sd->zoom; 2615 tz = sd->zoom;
2616 sd->zoom = 0.0; 2616 sd->zoom = 0.0;
@@ -2620,7 +2620,7 @@ _efl_ui_image_zoomable_efl_ui_zoom_zoom_mode_set(Eo *obj, Efl_Ui_Image_Zoomable_
2620EOLIAN static Efl_Ui_Zoom_Mode 2620EOLIAN static Efl_Ui_Zoom_Mode
2621_efl_ui_image_zoomable_efl_ui_zoom_zoom_mode_get(const Eo *obj EINA_UNUSED, Efl_Ui_Image_Zoomable_Data *sd) 2621_efl_ui_image_zoomable_efl_ui_zoom_zoom_mode_get(const Eo *obj EINA_UNUSED, Efl_Ui_Image_Zoomable_Data *sd)
2622{ 2622{
2623 return sd->mode; 2623 return (Efl_Ui_Zoom_Mode)sd->mode;
2624} 2624}
2625 2625
2626EOLIAN static Eina_Size2D 2626EOLIAN static Eina_Size2D
@@ -3395,13 +3395,13 @@ elm_photocam_zoom_get(const Evas_Object *obj)
3395EAPI void 3395EAPI void
3396elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode) 3396elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode)
3397{ 3397{
3398 efl_ui_zoom_mode_set(obj, mode); 3398 efl_ui_zoom_mode_set(obj, (Efl_Ui_Zoom_Mode)mode);
3399} 3399}
3400 3400
3401EAPI Elm_Photocam_Zoom_Mode 3401EAPI Elm_Photocam_Zoom_Mode
3402elm_photocam_zoom_mode_get(const Evas_Object *obj) 3402elm_photocam_zoom_mode_get(const Evas_Object *obj)
3403{ 3403{
3404 return efl_ui_zoom_mode_get(obj); 3404 return (Elm_Photocam_Zoom_Mode)efl_ui_zoom_mode_get(obj);
3405} 3405}
3406 3406
3407EAPI Evas_Load_Error 3407EAPI Evas_Load_Error