shithub: choc

Download patch

ref: 6a2d4763a9080cf88ca9f0b588b8187963eeacf5
parent: 8dab0a3e635db40359c8ddeb9afaa9eca626ee98
author: Simon Howard <[email protected]>
date: Fri Dec 10 18:20:29 EST 2010

Fix crash introduced by merge.

Subversion-branch: /branches/raven-branch
Subversion-revision: 2213

--- a/src/i_video.c
+++ b/src/i_video.c
@@ -928,9 +928,9 @@
     {
         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);
     }