mirror of
https://github.com/m1k1o/neko.git
synced 2025-07-31 23:40:50 +02:00
round cursors pixel position.
This commit is contained in:
parent
a1d755d6eb
commit
05176a2b31
1 changed files with 2 additions and 2 deletions
|
@ -284,8 +284,8 @@
|
|||
this._ctx.clearRect(0, 0, width, height)
|
||||
this._ctx.drawImage(
|
||||
this.cursorElem,
|
||||
(x / this.screenSize.width) * width - this.control.cursor.image.x,
|
||||
(y / this.screenSize.height) * height - this.control.cursor.image.y,
|
||||
Math.round((x / this.screenSize.width) * width - this.control.cursor.image.x),
|
||||
Math.round((y / this.screenSize.height) * height - this.control.cursor.image.y),
|
||||
this.control.cursor.image.width,
|
||||
this.control.cursor.image.height,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue