Mercurial > sdl-ios-xcode
diff src/timer/macos/SDL_systimer.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 | 92947e3a18db |
children | 782fd950bd46 |
line wrap: on
line diff
--- a/src/timer/macos/SDL_systimer.c Mon May 01 06:58:33 2006 +0000 +++ b/src/timer/macos/SDL_systimer.c Wed May 17 08:18:28 2006 +0000 @@ -36,6 +36,10 @@ #include "FastTimes.h" +#if TARGET_API_MAC_CARBON +#define NewTimerProc NewTimerUPP +#endif + #define MS_PER_TICK (1000.0/60.0) /* MacOS tick = 1/60 second */ @@ -67,7 +71,11 @@ stop = SDL_GetTicks() + ms; do { + #if TARGET_API_MAC_CARBON + MPYield(); + #else SystemTask(); + #endif now = SDL_GetTicks();