changeset 1041:af92ee34b3e2

Was using width of surface instead of pitch to calculate length of surface width in words
author Patrice Mandin <patmandin@gmail.com>
date Wed, 02 Mar 2005 17:17:26 +0000
parents c6ed27c7d47d
children 0e7218843cfb
files src/video/gem/SDL_gemvideo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/gem/SDL_gemvideo.c	Tue Feb 22 17:57:40 2005 +0000
+++ b/src/video/gem/SDL_gemvideo.c	Wed Mar 02 17:17:26 2005 +0000
@@ -828,7 +828,7 @@
 		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=