aboutsummaryrefslogtreecommitdiff
path: root/tests/sdl_image.c
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-10 17:08:25 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-10 17:08:25 -0700
commit9de35128d84aacb450d7bf188e65b9304633ab09 (patch)
treeac38fe8d785cdcb20c2bb8315f9c91b229992d27 /tests/sdl_image.c
parent33db680552a2811e92552d9c225aedb68f4b13d0 (diff)
fix sdl pitch bug
Diffstat (limited to 'tests/sdl_image.c')
-rw-r--r--tests/sdl_image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/sdl_image.c b/tests/sdl_image.c
index 1efed88c..d934f863 100644
--- a/tests/sdl_image.c
+++ b/tests/sdl_image.c
@@ -16,6 +16,7 @@ int main() {
}
assert(image->format->BitsPerPixel == 32);
assert(image->format->BytesPerPixel == 4);
+ assert(image->pitch == 4*image->w);
SDL_BlitSurface (image, NULL, screen, NULL);
SDL_FreeSurface (image);