aboutsummaryrefslogtreecommitdiff
path: root/core/image
diff options
context:
space:
mode:
authorgordonshamway23 <gordonshamway23@users.sourceforge.net>2024-08-23 21:28:59 +0200
committergordonshamway23 <gordonshamway23@users.sourceforge.net>2024-08-23 21:28:59 +0200
commit426367c522fe731fbd21372073bbf86171c67e77 (patch)
tree2f16ebb1ce256b87de7adc2540d98d34e044b481 /core/image
parentd4102817665e044b092f3c136802373fd830eb4d (diff)
Added missing slice advancing.
Diffstat (limited to 'core/image')
-rw-r--r--core/image/common.odin2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/image/common.odin b/core/image/common.odin
index 62deb60a9..690ebc045 100644
--- a/core/image/common.odin
+++ b/core/image/common.odin
@@ -1393,6 +1393,7 @@ expand_grayscale :: proc(img: ^Image, allocator := context.allocator) -> (ok: bo
for p in inp {
out[0].rgb = p.r // Gray component.
out[0].a = p.g // Alpha component.
+ out = out[1:]
}
case:
@@ -1417,6 +1418,7 @@ expand_grayscale :: proc(img: ^Image, allocator := context.allocator) -> (ok: bo
for p in inp {
out[0].rgb = p.r // Gray component.
out[0].a = p.g // Alpha component.
+ out = out[1:]
}
case: