summaryrefslogtreecommitdiff
path: root/colors.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2024-10-29 21:20:57 -0400
committerpommicket <pommicket@gmail.com>2024-10-29 21:20:57 -0400
commitb74905fcb282603f8afc45cd3f08fa8c28c83d41 (patch)
tree96099bbc52d39631213b64719f9e18d7f666890c /colors.c
parentd75d7faeacf89b8f9aadb89868480312154bf53b (diff)
Silence compiler warningHEADtrunk
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);
}