aboutsummaryrefslogtreecommitdiff
path: root/libi3/get_colorpixel.c
diff options
context:
space:
mode:
Diffstat (limited to 'libi3/get_colorpixel.c')
-rw-r--r--libi3/get_colorpixel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libi3/get_colorpixel.c b/libi3/get_colorpixel.c
index 45e47725..9d4e91cf 100644
--- a/libi3/get_colorpixel.c
+++ b/libi3/get_colorpixel.c
@@ -56,8 +56,9 @@ uint32_t get_colorpixel(const char *hex) {
/* Lookup this colorpixel in the cache */
struct Colorpixel *colorpixel;
SLIST_FOREACH (colorpixel, &(colorpixels), colorpixels) {
- if (strcmp(colorpixel->hex, hex) == 0)
+ if (strcmp(colorpixel->hex, hex) == 0) {
return colorpixel->pixel;
+ }
}
#define RGB_8_TO_16(i) (65535 * ((i)&0xFF) / 255)