Mercurial > sdl-ios-xcode
diff src/video/SDL_pixels.c @ 1670:eef792d31de8 SDL-1.3
Work in progress. :)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 07 Jun 2006 16:10:28 +0000 |
parents | 4da1ee79c9af |
children | 7ae8018b2e5d |
line wrap: on
line diff
--- a/src/video/SDL_pixels.c Mon May 29 05:08:33 2006 +0000 +++ b/src/video/SDL_pixels.c Wed Jun 07 16:10:28 2006 +0000 @@ -480,10 +480,10 @@ /* * Calculate the pad-aligned scanline width of a surface */ -Uint16 +int SDL_CalculatePitch(SDL_Surface * surface) { - Uint16 pitch; + int pitch; /* Surface should be 4-byte aligned for speed */ pitch = surface->w * surface->format->BytesPerPixel;