From d442ab1d7144219eb05e109a8d159422fc22fb99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 28 Feb 2011 20:20:44 +0100 Subject: [PATCH] Replace * 0.5 optimisations with more obvious / 2, as there is no need for such optimisation here. --- src/item/Raster.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/item/Raster.js b/src/item/Raster.js index 6353e1d7..94cb4019 100644 --- a/src/item/Raster.js +++ b/src/item/Raster.js @@ -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,