Was using width of surface instead of pitch to calculate length of surface width in words
authorPatrice Mandin <patmandin@gmail.com>
Wed, 02 Mar 2005 17:17:26 +0000
changeset 1041af92ee34b3e2
parent 1040 c6ed27c7d47d
child 1042 0e7218843cfb
Was using width of surface instead of pitch to calculate length of surface width in words
src/video/gem/SDL_gemvideo.c
     1.1 --- a/src/video/gem/SDL_gemvideo.c	Tue Feb 22 17:57:40 2005 +0000
     1.2 +++ b/src/video/gem/SDL_gemvideo.c	Wed Mar 02 17:17:26 2005 +0000
     1.3 @@ -828,7 +828,7 @@
     1.4  		mfdb_src.fd_addr=surface->pixels;
     1.5  		mfdb_src.fd_w=surf_width;
     1.6  		mfdb_src.fd_h=surface->h;
     1.7 -		mfdb_src.fd_wdwidth=mfdb_src.fd_w >> 4;
     1.8 +		mfdb_src.fd_wdwidth= (surface->pitch/VDI_pixelsize) >> 4;
     1.9  		mfdb_src.fd_nplanes=surface->format->BitsPerPixel;
    1.10  		mfdb_src.fd_stand=
    1.11  			mfdb_src.fd_r1=