Skip to content

Commit

Permalink
Fixed bug #225
Browse files Browse the repository at this point in the history
Making the old code limp along, for Carbon builds.
  • Loading branch information
slouken committed May 11, 2006
1 parent b859db3 commit e494c2b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/timer/macos/FastTimes.c
Expand Up @@ -19,6 +19,11 @@

#include "FastTimes.h"

#ifdef TARGET_CPU_PPC
#undef GENERATINGPOWERPC /* stop whining */
#define GENERATINGPOWERPC TARGET_CPU_PPC
#endif

/* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */
/* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */
/*
Expand Down
8 changes: 8 additions & 0 deletions src/timer/macos/SDL_systimer.c
Expand Up @@ -36,6 +36,10 @@

#include "FastTimes.h"

#ifdef TARGET_API_MAC_CARBON
#define NewTimerProc NewTimerUPP
#endif

#define MS_PER_TICK (1000.0/60.0) /* MacOS tick = 1/60 second */


Expand Down Expand Up @@ -67,7 +71,11 @@ void SDL_Delay(Uint32 ms)

stop = SDL_GetTicks() + ms;
do {
#ifdef TARGET_API_MAC_CARBON
MPYield();
#else
SystemTask();
#endif

now = SDL_GetTicks();

Expand Down

0 comments on commit e494c2b

Please sign in to comment.