From b74905fcb282603f8afc45cd3f08fa8c28c83d41 Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 29 Oct 2024 21:20:57 -0400 Subject: Silence compiler warning --- colors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'colors.c') 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); } -- cgit v1.2.3