not null compare.

This commit is contained in:
Miroslav Šedivý 2021-10-26 20:12:55 +02:00
parent 9736fe3a5e
commit 5ee38f217e

View File

@ -395,7 +395,7 @@
} }
canvasRedraw() { canvasRedraw() {
if (this.cursorPosition == null || this.screenSize == null || this.cursorImage == null) return if (!this.cursorPosition || !this.screenSize || !this.cursorImage) return
// clear drawings // clear drawings
this.canvasClear() this.canvasClear()