From ca58a3cced99fc2a8989da0155c1927bc0f08b6f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 2 Jul 2011 04:36:59 +0300 Subject: Replace some getters to direct member access in Image class. --- src/opengl1graphics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/opengl1graphics.cpp') diff --git a/src/opengl1graphics.cpp b/src/opengl1graphics.cpp index 5f22171d0..78396c8c8 100644 --- a/src/opengl1graphics.cpp +++ b/src/opengl1graphics.cpp @@ -316,8 +316,8 @@ void OpenGL1Graphics::drawImagePattern(Image *image, int x, int y, 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; -- cgit v1.2.3-70-g09d2