fix drawImage dy typos
This commit is contained in:
parent
cf3dd45b3b
commit
eec887f439
1 changed files with 2 additions and 2 deletions
|
@ -555,7 +555,7 @@ proc drawImage*(
|
|||
ctx: Context, image: Image, dx, dy: float32
|
||||
) {.raises: [PixieError].} =
|
||||
## Draws a source image onto the destination image.
|
||||
ctx.drawImage(image, dx, dx, image.width.float32, image.height.float32)
|
||||
ctx.drawImage(image, dx, dy, image.width.float32, image.height.float32)
|
||||
|
||||
proc drawImage*(ctx: Context, image: Image, pos: Vec2) {.raises: [PixieError].} =
|
||||
## Draws a source image onto the destination image.
|
||||
|
@ -573,7 +573,7 @@ proc drawImage*(
|
|||
) {.raises: [PixieError].} =
|
||||
## Draws a source image onto the destination image.
|
||||
let image = image.subImage(sx.int, sy.int, sWidth.int, sHeight.int)
|
||||
ctx.drawImage(image, dx, dx, image.width.float32, image.height.float32)
|
||||
ctx.drawImage(image, dx, dy, image.width.float32, image.height.float32)
|
||||
|
||||
proc drawImage*(ctx: Context, image: Image, src, dest: Rect) {.raises: [PixieError].} =
|
||||
## Draws a source image onto the destination image.
|
||||
|
|
Loading…
Reference in a new issue