# HG changeset patch # User Sam Lantinga # Date 1228460472 0 # Node ID feb6ccdb888fd3d1e3fdc3f5ee71d9d9c4a01528 # Parent c2e182a37f5f9b6096d32ed0c0755ff5f9b74660 minor bug diff -r c2e182a37f5f -r feb6ccdb888f test/testsprite2.c --- a/test/testsprite2.c Fri Dec 05 07:00:58 2008 +0000 +++ b/test/testsprite2.c Fri Dec 05 07:01:12 2008 +0000 @@ -129,7 +129,7 @@ position->x += velocity->x; } position->y += velocity->y; - if ((position->y < 0) || (position->y >= (window_h - sprite_w))) { + if ((position->y < 0) || (position->y >= (window_h - sprite_h))) { velocity->y = -velocity->y; position->y += velocity->y; }