summaryrefslogtreecommitdiff
path: root/src/openglgraphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openglgraphics.cpp')
-rw-r--r--src/openglgraphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openglgraphics.cpp b/src/openglgraphics.cpp
index 5e2cb500..9de59f79 100644
--- a/src/openglgraphics.cpp
+++ b/src/openglgraphics.cpp
@@ -84,8 +84,8 @@ bool OpenGLGraphics::setVideoMode(int w, int h, int bpp, bool fs, bool hwaccel)
bool OpenGLGraphics::drawImage(Image *image, int srcX, int srcY,
int dstX, int dstY, int width, int height)
{
- srcX += image->bounds.x;
- srcY += image->bounds.y;
+ srcX += image->mBounds.x;
+ srcY += image->mBounds.y;
// Find OpenGL texture coordinates
float texX1 = srcX / (float)image->mTexWidth;