summaryrefslogtreecommitdiff
path: root/src/resources/imageloader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/imageloader.cpp')
-rw-r--r--src/resources/imageloader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/imageloader.cpp b/src/resources/imageloader.cpp
index fa5d0eea1..c63d33c00 100644
--- a/src/resources/imageloader.cpp
+++ b/src/resources/imageloader.cpp
@@ -66,7 +66,7 @@ int ProxyImage::getWidth() const
if (mSDLImage)
return mSDLImage->w;
else if (mImage)
- return mImage->getWidth();
+ return mImage->mBounds.w;
else
return 0;
}
@@ -76,7 +76,7 @@ int ProxyImage::getHeight() const
if (mSDLImage)
return mSDLImage->h;
else if (mImage)
- return mImage->getHeight();
+ return mImage->mBounds.h;
else
return 0;
// return mSDLImage ? mSDLImage->h : mImage->getHeight();