Replace * 0.5 optimisations with more obvious / 2, as there is no need for such optimisation here.

This commit is contained in:
Jürg Lehni 2011-02-28 20:20:44 +01:00
parent c3d02bbd16
commit d442ab1d71

View file

@ -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,