Mercurial > sdl-ios-xcode
comparison test/testtimer.c @ 1659:14717b52abc0 SDL-1.3
Merge trunk-1.3-3
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 17 May 2006 08:18:28 +0000 |
parents | d5298e8f22b3 |
children | 782fd950bd46 c121d94672cb |
comparison
equal
deleted
inserted
replaced
1658:e49147870aac | 1659:14717b52abc0 |
---|---|
10 | 10 |
11 #define DEFAULT_RESOLUTION 1 | 11 #define DEFAULT_RESOLUTION 1 |
12 | 12 |
13 static int ticks = 0; | 13 static int ticks = 0; |
14 | 14 |
15 static Uint32 ticktock(Uint32 interval) | 15 static Uint32 SDLCALL ticktock(Uint32 interval) |
16 { | 16 { |
17 ++ticks; | 17 ++ticks; |
18 return(interval); | 18 return(interval); |
19 } | 19 } |
20 | 20 |
21 static Uint32 callback(Uint32 interval, void *param) | 21 static Uint32 SDLCALL callback(Uint32 interval, void *param) |
22 { | 22 { |
23 printf("Timer %d : param = %d\n", interval, (int)(uintptr_t)param); | 23 printf("Timer %d : param = %d\n", interval, (int)(uintptr_t)param); |
24 return interval; | 24 return interval; |
25 } | 25 } |
26 | 26 |