1
0
Fork 0
forked from AbleOS/ableos
This commit is contained in:
peony 2024-10-19 17:58:55 +02:00
parent 38c6f6cf47
commit 851e0bd94a

View file

@ -231,7 +231,7 @@ put_scaled := fn(surface: Surface, source: Surface, pos: Vec2(int), size: Vec2(i
pos = .(0, 0) pos = .(0, 0)
loop if pos.y >= size.y break else { loop if pos.y >= size.y break else {
loop if pos.x >= size.x break else { loop if pos.x >= size.x break else {
*surface_idx = *@inline(surfaceidx, source, source_pos.x, source_pos.y) *surface_idx = *@inline(index, source, source_pos.x, source_pos.y)
surface_idx += step.x surface_idx += step.x
if size.x < source.width { if size.x < source.width {