mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
round cursors pixel position.
This commit is contained in:
parent
a1d755d6eb
commit
05176a2b31
@ -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…
Reference in New Issue
Block a user