mirror of
https://github.com/yawut/SDL.git
synced 2026-04-22 16:47:18 -05:00
parent
a90e3bb90b
commit
90f1c175ac
|
|
@ -19,6 +19,11 @@
|
|||
|
||||
#include "FastTimes.h"
|
||||
|
||||
#ifdef TARGET_CPU_PPC
|
||||
#undef GENERATINGPOWERPC /* stop whining */
|
||||
#define GENERATINGPOWERPC TARGET_CPU_PPC
|
||||
#endif
|
||||
|
||||
/* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */
|
||||
/* **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** */
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
||||
|
||||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user