summaryrefslogtreecommitdiff
path: root/src/i_video.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/i_video.c')
-rw-r--r--src/i_video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i_video.c b/src/i_video.c
index aa9640bf..99972e9a 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -928,9 +928,9 @@ static boolean BlitArea(int x1, int y1, int x2, int y2)
{
I_InitScale(I_VideoBuffer,
(byte *) screenbuffer->pixels
- + (y_offset * screen->pitch)
+ + (y_offset * screenbuffer->pitch)
+ x_offset,
- screen->pitch);
+ screenbuffer->pitch);
result = screen_mode->DrawScreen(x1, y1, x2, y2);
SDL_UnlockSurface(screenbuffer);
}