« get me outta code hell

Fix unwanted aliasing of progress bar - csb-game - Pixelly spin-off of the Command Synergy Battle system used in Final Fantasy XIII
summary refs log tree commit diff
path: root/index.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-08-09 18:59:23 -0300
committerFlorrie <towerofnix@gmail.com>2018-08-09 18:59:23 -0300
commit1aa951fc2b4970674510a18c2e0f1e92378dc446 (patch)
treeb049669219566e56f57999395cd1bb5b320c7ca6 /index.js
parent25a5879419cc1d6b2f93ca60d08fccb5759271c8 (diff)
Fix unwanted aliasing of progress bar
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index 0d00cab..8703cf9 100644
--- a/index.js
+++ b/index.js
@@ -23,7 +23,7 @@ class ATBBar {
     ctx.save()
 
     ctx.beginPath()
-    ctx.rect(0, 0, this.canvas.width * this.progress, this.canvas.height)
+    ctx.rect(0, 0, Math.round(this.canvas.width * this.progress), this.canvas.height)
     ctx.clip()
 
     ctx.fillStyle = '#77F'