From ee0cb9ee2df14520a40b7b44c188c63446e3efa9 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Tue, 15 May 2007 07:14:12 +0000 Subject: 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(-) (limited to 'engines/agos') 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; -- cgit v1.2.3