This fixes messed up graphics, when SDL decides to add padding bytes to the lines of an SDL_Surface. Formerly the code always calculated the pitch via w*bpp, which of course does not work in all cases. |
||
---|---|---|
.. | ||
sdl-graphics.cpp | ||
sdl-graphics.h |
This fixes messed up graphics, when SDL decides to add padding bytes to the lines of an SDL_Surface. Formerly the code always calculated the pitch via w*bpp, which of course does not work in all cases. |
||
---|---|---|
.. | ||
sdl-graphics.cpp | ||
sdl-graphics.h |