f
This commit is contained in:
parent
ac5271600d
commit
21ac6af59a
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ proc magnifyBy2*(mask: Mask, power = 1): Mask {.raises: [PixieError].} =
|
||||||
resultIdx = result.dataIndex(x * scale, y * scale)
|
resultIdx = result.dataIndex(x * scale, y * scale)
|
||||||
for i in 0 ..< scale:
|
for i in 0 ..< scale:
|
||||||
result.data[resultIdx + i] = value
|
result.data[resultIdx + i] = value
|
||||||
# Copy that row of pixels into (scale - 1) more rows
|
# Copy that row of values into (scale - 1) more rows
|
||||||
let rowStart = result.dataIndex(0, y * scale)
|
let rowStart = result.dataIndex(0, y * scale)
|
||||||
for i in 1 ..< scale:
|
for i in 1 ..< scale:
|
||||||
copyMem(
|
copyMem(
|
||||||
|
|
Loading…
Reference in a new issue