aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
diff options
context:
space:
mode:
authorTravis Howell2007-05-15 07:14:12 +0000
committerTravis Howell2007-05-15 07:14:12 +0000
commitee0cb9ee2df14520a40b7b44c188c63446e3efa9 (patch)
treec214ba8dd8c1171f0a038301f3995c50ed158678 /engines/agos
parent2371b4ec033883c25234231f36798f7af5bc9bed (diff)
downloadscummvm-rg350-ee0cb9ee2df14520a40b7b44c188c63446e3efa9.tar.gz
scummvm-rg350-ee0cb9ee2df14520a40b7b44c188c63446e3efa9.tar.bz2
scummvm-rg350-ee0cb9ee2df14520a40b7b44c188c63446e3efa9.zip
Ooops, the y offset in drawBackGround() should be based on state width too.
svn-id: r26843
Diffstat (limited to 'engines/agos')
-rw-r--r--engines/agos/gfx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agos/gfx.cpp b/engines/agos/gfx.cpp
index 83930f5b06..79999aa65b 100644
--- a/engines/agos/gfx.cpp
+++ b/engines/agos/gfx.cpp
@@ -729,7 +729,7 @@ void AGOSEngine::drawBackGroundImage(VC10_state *state) {
state->y_skip = 0;
}
- src = state->srcPtr + (_screenWidth * state->y_skip) + (state->x_skip * 8);
+ src = state->srcPtr + (state->width * state->y_skip) + (state->x_skip * 8);
dst = state->surf_addr;
state->draw_width *= 2;