From 5f43cf85c7e59f0e1192f803560848777d64743f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 2 Jul 2011 04:57:16 +0300 Subject: Replace some getters to direct members access in graphics class. --- src/imageparticle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/imageparticle.cpp') diff --git a/src/imageparticle.cpp b/src/imageparticle.cpp index e38dc8cb5..6f6217d82 100644 --- a/src/imageparticle.cpp +++ b/src/imageparticle.cpp @@ -76,9 +76,9 @@ bool ImageParticle::draw(Graphics *graphics, int offsetX, int offsetY) const // Check if on screen if (screenX + mImage->mBounds.w < 0 || - screenX > graphics->getWidth() || + screenX > graphics->mWidth || screenY + mImage->mBounds.h < 0 || - screenY > graphics->getHeight()) + screenY > graphics->mHeight) { return false; } -- cgit v1.2.3-60-g2f50