Mercurial > sdl-ios-xcode
diff test/testshape.c @ 4849:0b918c186938
Finally got the Win32 API code for shaping to work! Just need to fix SDL_CalculateShapeTree() now!
author | egottlieb |
---|---|
date | Sat, 14 Aug 2010 16:14:36 -0400 |
parents | 2e446923c9fb |
children | 579dabb141ea |
line wrap: on
line diff
--- a/test/testshape.c Thu Aug 12 18:17:15 2010 -0400 +++ b/test/testshape.c Sat Aug 14 16:14:36 2010 -0400 @@ -8,7 +8,7 @@ #define SHAPED_WINDOW_Y 150 #define SHAPED_WINDOW_DIMENSION 640 -#define TICK_INTERVAL 1000/60 +#define TICK_INTERVAL 1000/10 typedef struct LoadedPicture { SDL_Surface *surface; @@ -32,11 +32,11 @@ static Uint32 next_time; Uint32 time_left() { - Uint32 now = SDL_GetTicks(); - if(next_time <= now) - return 0; + Uint32 now = SDL_GetTicks(); + if(next_time <= now) + return 0; else - return next_time - now; + return next_time - now; } int main(int argc,char** argv) {