# HG changeset patch # User Matti Hamalainen # Date 1274197636 -10800 # Node ID 2105d2dfefa381ea587668f1fe364ecbd0a1ed86 # Parent a379d6a2a71782de004b348810f59f9b7c8d73c6 Try to adjust blitting with SDL surface pitch. Might fix something. diff -r a379d6a2a717 -r 2105d2dfefa3 pwplib/sdl.c --- a/pwplib/sdl.c Tue May 18 17:58:37 2010 +0300 +++ b/pwplib/sdl.c Tue May 18 18:47:16 2010 +0300 @@ -51,6 +51,9 @@ j = (j + 1) & 1; if (!j) ss += pwplib.videobuf.width; + + if (pwp_SDL.screen->pitch > pwp_SDL.screen->w) + d += pwp_SDL.screen->pitch - pwp_SDL.screen->w; } if (SDL_MUSTLOCK(pwp_SDL.screen) != 0)