summaryrefslogtreecommitdiff
path: root/src/lib/evas/common
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean@guyomarch.bzh>2016-05-18 21:27:58 +0200
committerJean Guyomarc'h <jean@guyomarch.bzh>2016-05-18 21:57:02 +0200
commit147ef32b2bbb817c336425d1c64b4a092e64e8dc (patch)
tree5210234fef460c9029c989645baa9ee16de30150 /src/lib/evas/common
parent64ce45b9b416711aa9fe08159d68f2f2d6c18a33 (diff)
efl: fix misleading indentation
GCC's -Wmisleading-indentation is complaining... It is a warning flag introduced in GCC 6.x, and is enabled by -Wall.
Diffstat (limited to 'src/lib/evas/common')
-rw-r--r--src/lib/evas/common/evas_convert_color.c24
1 files changed, 18 insertions, 6 deletions
diff --git a/src/lib/evas/common/evas_convert_color.c b/src/lib/evas/common/evas_convert_color.c
index 7cdd3f6..87057e4 100644
--- a/src/lib/evas/common/evas_convert_color.c
+++ b/src/lib/evas/common/evas_convert_color.c
@@ -157,22 +157,34 @@ evas_common_convert_color_hsv_to_rgb(float h, float s, float v, int *r, int *g,
157 switch (i) 157 switch (i)
158 { 158 {
159 case 1: 159 case 1:
160 if (r) *r = v - f; if (g) *g = v; if (b) *b = s; 160 if (r) *r = v - f;
161 if (g) *g = v;
162 if (b) *b = s;
161 return; 163 return;
162 case 2: 164 case 2:
163 if (r) *r = s; if (g) *g = v; if (b) *b = s + f; 165 if (r) *r = s;
166 if (g) *g = v;
167 if (b) *b = s + f;
164 return; 168 return;
165 case 3: 169 case 3:
166 if (r) *r = s; if (g) *g = v - f; if (b) *b = v; 170 if (r) *r = s;
171 if (g) *g = v - f;
172 if (b) *b = v;
167 return; 173 return;
168 case 4: 174 case 4:
169 if (r) *r = s + f; if (g) *g = s; if (b) *b = v; 175 if (r) *r = s + f;
176 if (g) *g = s;
177 if (b) *b = v;
170 return; 178 return;
171 case 5: 179 case 5:
172 if (r) *r = v; if (g) *g = s; if (b) *b = v - f; 180 if (r) *r = v;
181 if (g) *g = s;
182 if (b) *b = v - f;
173 return; 183 return;
174 default: 184 default:
175 if (r) *r = v; if (g) *g = s + f; if (b) *b = s; 185 if (r) *r = v;
186 if (g) *g = s + f;
187 if (b) *b = s;
176 break; 188 break;
177 } 189 }
178} 190}