summaryrefslogtreecommitdiff
path: root/src/bin/ephoto_color.c
diff options
context:
space:
mode:
authorStephen okra Houston <smhouston88@gmail.com>2016-04-08 11:49:40 -0500
committerStephen okra Houston <smhouston88@gmail.com>2016-04-08 11:49:40 -0500
commita6aee9555b9d9543186401d52fc5adca34ada7bd (patch)
tree3e13a544ef0881270b99297f5505cfcb159c97d6 /src/bin/ephoto_color.c
parentc47ebd4c4a01acc53888d7c45e2bbc4cbac21dd2 (diff)
Ephoto: Clean up/organize code to get ready for release. Use a pane widget for the thumbnail view. Use raise() to work around genlist bug.
Diffstat (limited to 'src/bin/ephoto_color.c')
-rw-r--r--src/bin/ephoto_color.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/ephoto_color.c b/src/bin/ephoto_color.c
index 282365f..cc5d384 100644
--- a/src/bin/ephoto_color.c
+++ b/src/bin/ephoto_color.c
@@ -14,7 +14,7 @@ struct _Ephoto_Color
14 int blue; 14 int blue;
15 int green; 15 int green;
16 int red; 16 int red;
17 int w, h; 17 Evas_Coord w, h;
18 unsigned int *original_im_data; 18 unsigned int *original_im_data;
19}; 19};
20 20
@@ -51,7 +51,7 @@ unsigned int *
51_ephoto_color_adjust_red(Ephoto_Color *eco, int red, unsigned int *image_data) 51_ephoto_color_adjust_red(Ephoto_Color *eco, int red, unsigned int *image_data)
52{ 52{
53 unsigned int *im_data, *im_data_new, *p1, *p2; 53 unsigned int *im_data, *im_data_new, *p1, *p2;
54 int x, y; 54 Evas_Coord x, y;
55 int a, r, g, b, rr; 55 int a, r, g, b, rr;
56 56
57 im_data = malloc(sizeof(unsigned int) * eco->w * eco->h); 57 im_data = malloc(sizeof(unsigned int) * eco->w * eco->h);
@@ -100,7 +100,7 @@ _ephoto_color_adjust_green(Ephoto_Color *eco, int green,
100 unsigned int *image_data) 100 unsigned int *image_data)
101{ 101{
102 unsigned int *im_data, *im_data_new, *p1, *p2; 102 unsigned int *im_data, *im_data_new, *p1, *p2;
103 int x, y; 103 Evas_Coord x, y;
104 int a, r, g, b, gg; 104 int a, r, g, b, gg;
105 105
106 im_data = malloc(sizeof(unsigned int) * eco->w * eco->h); 106 im_data = malloc(sizeof(unsigned int) * eco->w * eco->h);
@@ -149,7 +149,7 @@ _ephoto_color_adjust_blue(Ephoto_Color *eco, int blue,
149 unsigned int *image_data) 149 unsigned int *image_data)
150{ 150{
151 unsigned int *im_data, *im_data_new, *p1, *p2; 151 unsigned int *im_data, *im_data_new, *p1, *p2;
152 int x, y; 152 Evas_Coord x, y;
153 int a, r, g, b, bb; 153 int a, r, g, b, bb;
154 154
155 im_data = malloc(sizeof(unsigned int) * eco->w * eco->h); 155 im_data = malloc(sizeof(unsigned int) * eco->w * eco->h);
@@ -257,7 +257,7 @@ _color_apply(void *data, int type EINA_UNUSED,
257{ 257{
258 Ephoto_Color *eco = data; 258 Ephoto_Color *eco = data;
259 unsigned int *image_data; 259 unsigned int *image_data;
260 int 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(elm_image_object_get(eco->image),