summaryrefslogtreecommitdiff
path: root/src/imageparticle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imageparticle.cpp')
-rw-r--r--src/imageparticle.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}