diff options
Diffstat (limited to 'src/openglgraphics.cpp')
-rw-r--r-- | src/openglgraphics.cpp | 8 |
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) { |