From f72937619f7b87bedfd1adacfe42ebc0c56087be Mon Sep 17 00:00:00 2001 From: raster Date: Tue, 31 Aug 2010 13:29:17 +0000 Subject: [PATCH] color interpolation? never used. did nothing. not needed. go go go! git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@51781 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/Evas.h | 3 --- src/lib/canvas/evas_object_main.c | 41 +-------------------------------------- src/lib/include/evas_private.h | 1 - 3 files changed, 1 insertion(+), 44 deletions(-) diff --git a/src/lib/Evas.h b/src/lib/Evas.h index 164a8c6..e0434df 100644 --- a/src/lib/Evas.h +++ b/src/lib/Evas.h @@ -1014,9 +1014,6 @@ typedef void (*Evas_Async_Events_Put_Cb)(void *target, Evas_Callback_Type t EAPI void evas_object_scale_set (Evas_Object *obj, double scale) EINA_ARG_NONNULL(1); EAPI double evas_object_scale_get (const Evas_Object *obj) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_PURE; - EAPI void evas_object_color_interpolation_set (Evas_Object *obj, int color_space) EINA_ARG_NONNULL(1); - EAPI int evas_object_color_interpolation_get (const Evas_Object *obj) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_PURE; - EAPI void evas_object_render_op_set (Evas_Object *obj, Evas_Render_Op op) EINA_ARG_NONNULL(1); EAPI Evas_Render_Op evas_object_render_op_get (const Evas_Object *obj) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_PURE; diff --git a/src/lib/canvas/evas_object_main.c b/src/lib/canvas/evas_object_main.c index 284a33f..d8ac3b5 100644 --- a/src/lib/canvas/evas_object_main.c +++ b/src/lib/canvas/evas_object_main.c @@ -1364,44 +1364,6 @@ evas_object_scale_get(const Evas_Object *obj) } /** - * Sets the color_space to be used for linear interpolation of colors. - * - * @param obj The given evas object. - * @param color_space one of EVAS_COLOR_SPACE_ARGB or EVAS_COLOR_SPACE_AHSV. - * - * @ingroup Evas_Object_Group_Extras - */ -EAPI void -evas_object_color_interpolation_set(Evas_Object *obj, int color_space) -{ - MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ); - return; - MAGIC_CHECK_END(); - if (obj->delete_me) return; - if (obj->cur.interpolation_color_space == color_space) - return; - obj->cur.interpolation_color_space = color_space; - evas_object_change(obj); -} - - -/** - * Retrieves the current value of the color space used for linear interpolation. - * @param obj The given evas object. - * @return @c EVAS_COLOR_SPACE_ARGB or EVAS_COLOR_SPACE_AHSV. - * @ingroup Evas_Object_Group_Extras - */ -EAPI int -evas_object_color_interpolation_get(const Evas_Object *obj) -{ - MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ); - return 0; - MAGIC_CHECK_END(); - if (obj->delete_me) return 0; - return obj->cur.interpolation_color_space; -} - -/** * Sets the render_op to be used for rendering the evas object. * @param obj The given evas object. * @param render_op one of the Evas_Render_Op values. @@ -1415,12 +1377,11 @@ evas_object_render_op_set(Evas_Object *obj, Evas_Render_Op render_op) MAGIC_CHECK_END(); if (obj->delete_me) return; if ((Evas_Render_Op)obj->cur.render_op == render_op) - return; + return; obj->cur.render_op = render_op; evas_object_change(obj); } - /** * Retrieves the current value of the operation used for rendering the evas object. * @param obj The given evas object. diff --git a/src/lib/include/evas_private.h b/src/lib/include/evas_private.h index 2e9d83a..728243c 100644 --- a/src/lib/include/evas_private.h +++ b/src/lib/include/evas_private.h @@ -435,7 +435,6 @@ struct _Evas_Object Eina_Bool visible : 1; Eina_Bool have_clipees : 1; Eina_Bool anti_alias : 1; - unsigned char interpolation_color_space : 1; Evas_Render_Op render_op : 4; } cur, prev; -- 2.7.4