mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Replace * 0.5 optimisations with more obvious / 2, as there is no need for such optimisation here.
This commit is contained in:
parent
c3d02bbd16
commit
d442ab1d71
1 changed files with 2 additions and 2 deletions
|
@ -159,8 +159,8 @@ Raster = Item.extend({
|
|||
// away
|
||||
var width = this._size.width;
|
||||
var height = this._size.height;
|
||||
var x = width * -0.5;
|
||||
var y = height * -0.5;
|
||||
var x = -width / 2;
|
||||
var y = -height / 2;
|
||||
var coords = [
|
||||
x, y,
|
||||
x + width, y,
|
||||
|
|
Loading…
Reference in a new issue