Rename a var.
This commit is contained in:
parent
c737670d26
commit
b109af248d
1 changed files with 2 additions and 2 deletions
|
@ -597,12 +597,12 @@ proc drawImage*(ctx: Context, image: Image, dx, dy, dWidth, dHeight: float32) =
|
||||||
dWidth / image.width.float32,
|
dWidth / image.width.float32,
|
||||||
dHeight / image.height.float32
|
dHeight / image.height.float32
|
||||||
))
|
))
|
||||||
saveStyle = ctx.fillStyle
|
savedStyle = ctx.fillStyle
|
||||||
ctx.fillStyle = Paint(kind: pkImage, image: image, imageMat: imageMat)
|
ctx.fillStyle = Paint(kind: pkImage, image: image, imageMat: imageMat)
|
||||||
var path: Path
|
var path: Path
|
||||||
path.rect(rect(dx, dy, dWidth, dHeight))
|
path.rect(rect(dx, dy, dWidth, dHeight))
|
||||||
ctx.fill(path)
|
ctx.fill(path)
|
||||||
ctx.fillStyle = saveStyle
|
ctx.fillStyle = savedStyle
|
||||||
|
|
||||||
proc drawImage*(ctx: Context, image: Image, dx, dy: float32) =
|
proc drawImage*(ctx: Context, image: Image, dx, dy: float32) =
|
||||||
## Draws a source image onto the destination image.
|
## Draws a source image onto the destination image.
|
||||||
|
|
Loading…
Reference in a new issue