mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
Merge pull request #2634 from greeny/hotfix-bitmapdata-fluent
BitmapData.js: fixed fluent interface
This commit is contained in:
commit
0765e9eaa6
1 changed files with 4 additions and 0 deletions
|
@ -1730,6 +1730,8 @@ Phaser.BitmapData.prototype = {
|
|||
ctx.shadowOffsetX = x || 10;
|
||||
ctx.shadowOffsetY = y || 10;
|
||||
}
|
||||
|
||||
return this;
|
||||
|
||||
},
|
||||
|
||||
|
@ -1881,6 +1883,8 @@ Phaser.BitmapData.prototype = {
|
|||
ctx.fillText(text, x, y);
|
||||
|
||||
ctx.font = prevFont;
|
||||
|
||||
return this;
|
||||
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue