diff options
author | pommicket <pommicket@gmail.com> | 2024-10-29 21:20:57 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2024-10-29 21:20:57 -0400 |
commit | b74905fcb282603f8afc45cd3f08fa8c28c83d41 (patch) | |
tree | 96099bbc52d39631213b64719f9e18d7f666890c | |
parent | d75d7faeacf89b8f9aadb89868480312154bf53b (diff) |
Silence compiler warning
-rw-r--r-- | colors.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |