From ef287ac7e3a6d31e8e49271cb1ef978f0c108e35 Mon Sep 17 00:00:00 2001 From: derwish-pro Date: Sat, 30 Jan 2016 15:01:28 +0300 Subject: [PATCH] background image fix --- src/litegraph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/litegraph.js b/src/litegraph.js index 5e23c023f3..204d13cc8f 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -3664,7 +3664,7 @@ LGraphCanvas.prototype.drawBackCanvas = function() } var pattern = null; - if(this._bg_img != this._pattern_img && this._bg_img.width > 0) + if(this._pattern == null && this._bg_img.width > 0) { pattern = ctx.createPattern( this._bg_img, 'repeat' ); this._pattern_img = this._bg_img;