Improved performance of Image:refresh

This commit is contained in:
Alex Szpakowski
2013-10-13 16:31:29 -03:00
parent e068aab6ea
commit 43b3629e01
3 changed files with 49 additions and 61 deletions
@@ -107,8 +107,8 @@ ParticleSystem::ParticleSystem(Image *image, uint32 size)
, spinStart(0)
, spinEnd(0)
, spinVariation(0)
, offsetX(image->getWidth()*0.5f)
, offsetY(image->getHeight()*0.5f)
, offsetX(float(image->getWidth())*0.5f)
, offsetY(float(image->getHeight())*0.5f)
{
if (size == 0 || size > MAX_PARTICLES)
throw love::Exception("Invalid ParticleSystem size.");