summaryrefslogtreecommitdiff
path: root/src/openglgraphics.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/openglgraphics.cpp
parentd4dd89e72f8b1e2c0517981f7e3ffac4a040f9fa (diff)
downloadManaVerse-ca58a3cced99fc2a8989da0155c1927bc0f08b6f.tar.gz
ManaVerse-ca58a3cced99fc2a8989da0155c1927bc0f08b6f.tar.bz2
ManaVerse-ca58a3cced99fc2a8989da0155c1927bc0f08b6f.tar.xz
ManaVerse-ca58a3cced99fc2a8989da0155c1927bc0f08b6f.zip
Replace some getters to direct member access in Image class.
Diffstat (limited to 'src/openglgraphics.cpp')
-rw-r--r--src/openglgraphics.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/openglgraphics.cpp b/src/openglgraphics.cpp
index ea5d11c27..b2e4d8931 100644
--- a/src/openglgraphics.cpp
+++ b/src/openglgraphics.cpp
@@ -363,8 +363,8 @@ void OpenGLGraphics::drawImagePattern(Image *image, int x, int y, int w, int h)
const int srcX = image->mBounds.x;
const int srcY = image->mBounds.y;
- 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;
@@ -684,8 +684,8 @@ void OpenGLGraphics::calcImagePattern(GraphicsVertexes* vert, Image *image,
const int srcX = image->mBounds.x;
const int srcY = image->mBounds.y;
- 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)
{