Skip to content
Permalink
Browse files

Was using width of surface instead of pitch to calculate length of su…

…rface width in words
  • Loading branch information
pmandin committed Mar 2, 2005
1 parent 6da5730 commit 4ac2ec23cf56d0c003f15744c28640253dca4ae8
Showing with 1 addition and 1 deletion.
  1. +1 −1 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=

0 comments on commit 4ac2ec2

Please sign in to comment.