diff options
Diffstat (limited to 'src/lib/evas/canvas/efl_canvas_image.c')
-rw-r--r-- | src/lib/evas/canvas/efl_canvas_image.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_image.c b/src/lib/evas/canvas/efl_canvas_image.c index 13e8e5a8d0..1694d47ae5 100644 --- a/src/lib/evas/canvas/efl_canvas_image.c +++ b/src/lib/evas/canvas/efl_canvas_image.c | |||
@@ -389,9 +389,9 @@ _evas_image_load_region_set(Eo *eo_obj, int x, int y, int w, int h) | |||
389 | } | 389 | } |
390 | 390 | ||
391 | EOLIAN static void | 391 | EOLIAN static void |
392 | _efl_canvas_image_efl_image_load_load_region_set(Eo *eo_obj, void *_pd EINA_UNUSED EINA_UNUSED, int x, int y, int w, int h) | 392 | _efl_canvas_image_efl_image_load_load_region_set(Eo *eo_obj, void *_pd EINA_UNUSED EINA_UNUSED, Eina_Rect region) |
393 | { | 393 | { |
394 | _evas_image_load_region_set(eo_obj, x, y, w, h); | 394 | _evas_image_load_region_set(eo_obj, region.x, region.y, region.w, region.h); |
395 | } | 395 | } |
396 | 396 | ||
397 | void | 397 | void |
@@ -405,10 +405,12 @@ _evas_image_load_region_get(const Eo *eo_obj, int *x, int *y, int *w, int *h) | |||
405 | if (h) *h = o->load_opts->region.h; | 405 | if (h) *h = o->load_opts->region.h; |
406 | } | 406 | } |
407 | 407 | ||
408 | EOLIAN static void | 408 | EOLIAN static Eina_Rect |
409 | _efl_canvas_image_efl_image_load_load_region_get(Eo *eo_obj, void *_pd EINA_UNUSED EINA_UNUSED, int *x, int *y, int *w, int *h) | 409 | _efl_canvas_image_efl_image_load_load_region_get(Eo *eo_obj, void *_pd EINA_UNUSED EINA_UNUSED) |
410 | { | 410 | { |
411 | _evas_image_load_region_get(eo_obj, x, y, w, h); | 411 | Eina_Rect r; |
412 | _evas_image_load_region_get(eo_obj, &r.x, &r.y, &r.w, &r.h); | ||
413 | return r; | ||
412 | } | 414 | } |
413 | 415 | ||
414 | void | 416 | void |