aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Zylinski <karl@zylinski.se>2024-08-05 17:23:58 +0200
committerKarl Zylinski <karl@zylinski.se>2024-08-05 17:23:58 +0200
commitb63657d293caaa68e6972b8dbb3a3b3e85524e85 (patch)
treec9ab93bc22955820bb3cd30ce320e58e8eaf5219
parent030220eb229c5cb56d222bd21ae90936a3d1ad3d (diff)
Fix for blend_pixel.odin in core/image/common.odin not compiling
-rw-r--r--core/image/common.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/image/common.odin b/core/image/common.odin
index c9558bb0d..62deb60a9 100644
--- a/core/image/common.odin
+++ b/core/image/common.odin
@@ -1293,7 +1293,7 @@ blend_single_channel :: #force_inline proc(fg, alpha, bg: $T) -> (res: T) where
return T(c & (MAX - 1))
}
-blend_pixel :: #force_inline proc(fg: [$N]$T, alpha: T, bg: [N]T) -> (res: [N]T) where (T == u8 || T == u16), N >= 1 && N <= 4 {
+blend_pixel :: #force_inline proc(fg: [$N]$T, alpha: T, bg: [N]T) -> (res: [N]T) where (T == u8 || T == u16), N >= 1, N <= 4 {
MAX :: 256 when T == u8 else 65536
when N == 1 {