From 0d7847424045776880d26ca5ddf1f560d673c739 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 22 May 2004 22:54:16 +0000 Subject: [PATCH] fix crash --- stepmania/src/SDL_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/SDL_utils.cpp b/stepmania/src/SDL_utils.cpp index 947bf68e6f..956232f969 100644 --- a/stepmania/src/SDL_utils.cpp +++ b/stepmania/src/SDL_utils.cpp @@ -927,7 +927,7 @@ void mySDL_BlitSurface( { /* Duplicate the last row. */ char *srcp = (char *) dst->pixels; - srcp += dst->pitch * height; + srcp += dst->pitch * (height-1); memcpy( srcp + dst->pitch, srcp, dst->pitch ); } }