From 3d64addd455d86888f79266d49ea29bf4b222c59 Mon Sep 17 00:00:00 2001 From: krypt-n Date: Tue, 25 Nov 2014 13:17:48 +0100 Subject: [PATCH] Manually applies latest commit from master --- bar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bar.c b/bar.c index 3690afe..e80dfd7 100644 --- a/bar.c +++ b/bar.c @@ -295,9 +295,9 @@ parse_color (const char *str, char **end, const uint32_t def) if (a == 0) { r = g = b = 0; } else { - r = (r * 255) / a; - g = (g * 255) / a; - b = (b * 255) / a; + r = (r * a) / 255; + g = (g * a) / 255; + b = (b * a) / 255; /* Clamp on overflow */ if (r > 255) r = 255;