summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-02 04:36:59 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-02 04:37:42 +0300
commitca58a3cced99fc2a8989da0155c1927bc0f08b6f (patch)
treec8fc16ac2c5c0a9184c17c2920266b96934ed28f /src/graphics.cpp
parentd4dd89e72f8b1e2c0517981f7e3ffac4a040f9fa (diff)
downloadmanaplus-ca58a3cced99fc2a8989da0155c1927bc0f08b6f.tar.gz
manaplus-ca58a3cced99fc2a8989da0155c1927bc0f08b6f.tar.bz2
manaplus-ca58a3cced99fc2a8989da0155c1927bc0f08b6f.tar.xz
manaplus-ca58a3cced99fc2a8989da0155c1927bc0f08b6f.zip
Replace some getters to direct member access in Image class.
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 076f9c8e2..ff8bda066 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -243,8 +243,8 @@ void Graphics::drawImagePattern(Image *image, int x, int y, int w, int h)
if (!image->mSDLSurface)
return;
- const int iw = image->getWidth();
- const int ih = image->getHeight();
+ const int iw = image->mBounds.w;
+ const int ih = image->mBounds.h;
if (iw == 0 || ih == 0) return;
@@ -291,8 +291,8 @@ void Graphics::drawRescaledImagePattern(Image *image, int x, int y,
if (!tmpImage)
return;
- const int iw = tmpImage->getWidth();
- const int ih = tmpImage->getHeight();
+ const int iw = tmpImage->mBounds.w;
+ const int ih = tmpImage->mBounds.h;
if (iw == 0 || ih == 0)
return;
@@ -516,8 +516,8 @@ void Graphics::calcImagePattern(GraphicsVertexes* vert,
}
vert->clearSDL();
- const int iw = image->getWidth();
- const int ih = image->getHeight();
+ const int iw = image->mBounds.w;
+ const int ih = image->mBounds.h;
if (iw == 0 || ih == 0)
{