summaryrefslogtreecommitdiff
path: root/colors.c
diff options
context:
space:
mode:
Diffstat (limited to 'colors.c')
-rw-r--r--colors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/colors.c b/colors.c
index 289d286..820c0c6 100644
--- a/colors.c
+++ b/colors.c
@@ -167,7 +167,7 @@ u32 color_blend(u32 bg, u32 fg) {
u32 color_apply_opacity(u32 color, float opacity) {
opacity = clampf(opacity, 0.0f, 1.0f);
- return (color & 0xffffff00) | (u32)((color & 0xff) * opacity);
+ return (color & 0xffffff00) | (u32)((float)(color & 0xff) * opacity);
}