From a0dc766fb62be4f5459331f746847625c2746ce1 Mon Sep 17 00:00:00 2001 From: Patrice Mandin Date: Wed, 2 Mar 2005 17:17:26 +0000 Subject: [PATCH] Was using width of surface instead of pitch to calculate length of surface width in words --- src/video/gem/SDL_gemvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/gem/SDL_gemvideo.c b/src/video/gem/SDL_gemvideo.c index 257b31491..7ae69e09f 100644 --- a/src/video/gem/SDL_gemvideo.c +++ b/src/video/gem/SDL_gemvideo.c @@ -828,7 +828,7 @@ static void GEM_UpdateRectsFullscreen(_THIS, int numrects, SDL_Rect *rects) mfdb_src.fd_addr=surface->pixels; mfdb_src.fd_w=surf_width; mfdb_src.fd_h=surface->h; - mfdb_src.fd_wdwidth=mfdb_src.fd_w >> 4; + mfdb_src.fd_wdwidth= (surface->pitch/VDI_pixelsize) >> 4; mfdb_src.fd_nplanes=surface->format->BitsPerPixel; mfdb_src.fd_stand= mfdb_src.fd_r1=