comparison src/video/gem/SDL_gemvideo.c @ 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 2662da16d668
children 671bbd773c8a
comparison
equal deleted inserted replaced
1040:c6ed27c7d47d 1041:af92ee34b3e2
826 short blitcoords[8]; 826 short blitcoords[8];
827 827
828 mfdb_src.fd_addr=surface->pixels; 828 mfdb_src.fd_addr=surface->pixels;
829 mfdb_src.fd_w=surf_width; 829 mfdb_src.fd_w=surf_width;
830 mfdb_src.fd_h=surface->h; 830 mfdb_src.fd_h=surface->h;
831 mfdb_src.fd_wdwidth=mfdb_src.fd_w >> 4; 831 mfdb_src.fd_wdwidth= (surface->pitch/VDI_pixelsize) >> 4;
832 mfdb_src.fd_nplanes=surface->format->BitsPerPixel; 832 mfdb_src.fd_nplanes=surface->format->BitsPerPixel;
833 mfdb_src.fd_stand= 833 mfdb_src.fd_stand=
834 mfdb_src.fd_r1= 834 mfdb_src.fd_r1=
835 mfdb_src.fd_r2= 835 mfdb_src.fd_r2=
836 mfdb_src.fd_r3= 0; 836 mfdb_src.fd_r3= 0;