mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
Added missing slice advancing.
This commit is contained in:
@@ -1393,6 +1393,7 @@ expand_grayscale :: proc(img: ^Image, allocator := context.allocator) -> (ok: bo
|
|||||||
for p in inp {
|
for p in inp {
|
||||||
out[0].rgb = p.r // Gray component.
|
out[0].rgb = p.r // Gray component.
|
||||||
out[0].a = p.g // Alpha component.
|
out[0].a = p.g // Alpha component.
|
||||||
|
out = out[1:]
|
||||||
}
|
}
|
||||||
|
|
||||||
case:
|
case:
|
||||||
@@ -1417,6 +1418,7 @@ expand_grayscale :: proc(img: ^Image, allocator := context.allocator) -> (ok: bo
|
|||||||
for p in inp {
|
for p in inp {
|
||||||
out[0].rgb = p.r // Gray component.
|
out[0].rgb = p.r // Gray component.
|
||||||
out[0].a = p.g // Alpha component.
|
out[0].a = p.g // Alpha component.
|
||||||
|
out = out[1:]
|
||||||
}
|
}
|
||||||
|
|
||||||
case:
|
case:
|
||||||
|
|||||||
Reference in New Issue
Block a user