From ee0cb9ee2df14520a40b7b44c188c63446e3efa9 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Tue, 15 May 2007 07:14:12 +0000 Subject: [PATCH] Ooops, the y offset in drawBackGround() should be based on state width too. svn-id: r26843 --- engines/agos/gfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/agos/gfx.cpp b/engines/agos/gfx.cpp index 83930f5b06c..79999aa65bf 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;