fix firefox bug

This commit is contained in:
Bui 2018-08-26 17:40:59 +01:00
parent 65f83e58d2
commit 05608e341d
2 changed files with 4 additions and 5 deletions

View File

@ -1,8 +1,6 @@
# Taiko no Tatsujin Web # Taiko no Tatsujin Web
A web version of Taiko no Tatsujin A web version of Taiko no Tatsujin
Currently uploaded to Running instance: https://taiko.bui.pm
https://taiko.bui.pm
Still in developement Still in developement. Works best with Chrome.
Only works with Chrome.

View File

@ -191,7 +191,8 @@ function View(controller, bg, title, diff){
var barColour = document.getElementById('hp-bar-colour'); var barColour = document.getElementById('hp-bar-colour');
_ctx.drawImage(barBG, _HPBarX, _HPBarY, _HPBarW, _HPBarH); _ctx.drawImage(barBG, _HPBarX, _HPBarY, _HPBarW, _HPBarH);
_ctx.drawImage(barColour, 0, 0, _HPBarColWImage, 40, _HPbarColX, _HPbarColY, _HPBarColWCanvas, _HPBarColH); console.log(_HPBarColWImage);
_ctx.drawImage(barColour, 0, 0, Math.max(1, Math.floor(_HPBarColWImage)), 40, _HPbarColX, _HPbarColY, _HPBarColWCanvas, _HPBarColH);
} }