Device screen now has the ability to hide and clear the canvas.

This commit is contained in:
Gunther Brunner
2014-05-14 18:12:22 +09:00
parent d1fa99a4c5
commit d59c156297
5 changed files with 10 additions and 29 deletions

View File

@@ -16,7 +16,7 @@ CanvasRender.prototype.draw = function (image) {
}
CanvasRender.prototype.clear = function () {
this.context.clearRect(0, 0, this.displayWidth, this.displayHeight)
this.context.clearRect(0, 0, this.context.canvas.width, this.context.canvas.height)
}