commit
c601e020b7
1 changed files with 2 additions and 0 deletions
|
@ -109,6 +109,8 @@ PIXI.Text.prototype.updateText = function()
|
|||
var lineHeight = this.determineFontHeight('font: ' + this.style.font + ';') + this.style.strokeThickness;
|
||||
this.canvas.height = lineHeight * lines.length;
|
||||
|
||||
if(navigator.isCocoonJS) this.context.clearRect(0,0,this.canvas.width,this.canvas.height);
|
||||
|
||||
//set canvas text styles
|
||||
this.context.fillStyle = this.style.fill;
|
||||
this.context.font = this.style.font;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue