mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 12:43:26 +00:00
Origin.updateDisplayOrigin
no longer applies a Math.floor to the display origins, allowing you to have a 0.x origin for a Game Object that only has a width or height of 1. This fixes issues with things like 1x1 rectangles displaying incorrectly during rendering.
This commit is contained in:
parent
7d2b34f8ed
commit
41d007fe67
1 changed files with 2 additions and 2 deletions
|
@ -186,8 +186,8 @@ var Origin = {
|
|||
*/
|
||||
updateDisplayOrigin: function ()
|
||||
{
|
||||
this._displayOriginX = Math.round(this.originX * this.width);
|
||||
this._displayOriginY = Math.round(this.originY * this.height);
|
||||
this._displayOriginX = this.originX * this.width;
|
||||
this._displayOriginY = this.originY * this.height;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue