mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-21 05:15:17 +02:00
Device screen now has the ability to hide and clear the canvas.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user