summaryrefslogtreecommitdiff
path: root/src/bin/ephoto_color.c
diff options
context:
space:
mode:
authorStephen okra Houston <smhouston88@gmail.com>2016-08-04 16:36:58 -0500
committerStephen okra Houston <smhouston88@gmail.com>2016-08-04 16:36:58 -0500
commit1c01b4f315271ca8284c6061d615c00e4b5ace2a (patch)
treeba16125eb43079497e86facae92ae312831d011a /src/bin/ephoto_color.c
parent9f28098156ac798c6993157d01fe3ea1e63c9421 (diff)
Ephoto: Use evas_object_image rather than elm_image to avoid casting. Add config option to turn off smooth scaling.
Diffstat (limited to 'src/bin/ephoto_color.c')
-rw-r--r--src/bin/ephoto_color.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/ephoto_color.c b/src/bin/ephoto_color.c
index 4e03222..102e688 100644
--- a/src/bin/ephoto_color.c
+++ b/src/bin/ephoto_color.c
@@ -260,9 +260,9 @@ _color_apply(void *data, int type EINA_UNUSED,
260 Evas_Coord w, h; 260 Evas_Coord w, h;
261 261
262 image_data = 262 image_data =
263 evas_object_image_data_get(elm_image_object_get(eco->image), 263 evas_object_image_data_get(eco->image,
264 EINA_FALSE); 264 EINA_FALSE);
265 evas_object_image_size_get(elm_image_object_get(eco->image), &w, &h); 265 evas_object_image_size_get(eco->image, &w, &h);
266 ephoto_single_browser_image_data_done(eco->main, image_data, w, h); 266 ephoto_single_browser_image_data_done(eco->main, image_data, w, h);
267 ephoto_editor_del(eco->editor); 267 ephoto_editor_del(eco->editor);
268 268
@@ -320,9 +320,9 @@ ephoto_color_add(Ephoto *ephoto, Evas_Object *main, Evas_Object *parent, Evas_Ob
320 eco->parent = parent; 320 eco->parent = parent;
321 eco->image = image; 321 eco->image = image;
322 im_data = 322 im_data =
323 evas_object_image_data_get(elm_image_object_get(eco->image), 323 evas_object_image_data_get(eco->image,
324 EINA_FALSE); 324 EINA_FALSE);
325 evas_object_image_size_get(elm_image_object_get(eco->image), &eco->w, 325 evas_object_image_size_get(eco->image, &eco->w,
326 &eco->h); 326 &eco->h);
327 eco->original_im_data = malloc(sizeof(unsigned int) * eco->w * eco->h); 327 eco->original_im_data = malloc(sizeof(unsigned int) * eco->w * eco->h);
328 memcpy(eco->original_im_data, im_data, 328 memcpy(eco->original_im_data, im_data,