mirror of
https://github.com/yawut/SDL.git
synced 2026-09-07 08:36:19 -05:00
Updated Amiga port by Gabriele Greco
This commit is contained in:
@@ -38,6 +38,10 @@ static char rcsid =
|
||||
#include <pragmas/graphics.h>
|
||||
#include <clib/exec_protos.h>
|
||||
#include <pragmas/exec.h>
|
||||
#elif defined(STORMC4_WOS)
|
||||
#include <proto/dos.h>
|
||||
#include <proto/exec.h>
|
||||
#include <proto/graphics.h>
|
||||
#else
|
||||
#include <inline/dos.h>
|
||||
#include <inline/exec.h>
|
||||
@@ -59,7 +63,7 @@ static struct GfxBase *GfxBase;
|
||||
|
||||
/* The first ticks value of the application */
|
||||
|
||||
#ifndef __PPC__
|
||||
#if !defined(__PPC__) || defined(STORMC4_WOS) || defined(MORPHOS)
|
||||
static clock_t start;
|
||||
|
||||
void SDL_StartTicks(void)
|
||||
@@ -120,7 +124,7 @@ void SDL_StartTicks(void)
|
||||
/* Set first ticks value */
|
||||
if(!MyTimer)
|
||||
PPC_TimerInit();
|
||||
|
||||
|
||||
PPCGetTimerObject(MyTimer,PPCTIMERTAG_CURRENTTICKS,start);
|
||||
start[1]>>=10;
|
||||
start[1]|=((result[0]&0x3ff)<<22);
|
||||
@@ -134,7 +138,7 @@ Uint32 SDL_GetTicks (void)
|
||||
|
||||
// PPCAsr64p(result,10);
|
||||
// Non va, la emulo:
|
||||
|
||||
|
||||
result[1]>>=10;
|
||||
result[1]|=((result[0]&0x3ff)<<22);
|
||||
|
||||
@@ -200,7 +204,7 @@ void PPC_TimerInit(void)
|
||||
else
|
||||
{
|
||||
D(bug("Errore nell'inizializzazione del timer!\n"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -234,7 +238,7 @@ static int RunTimer(void *unused)
|
||||
/* This is only called if the event thread is not running */
|
||||
int SDL_SYS_TimerInit(void)
|
||||
{
|
||||
D(bug("Creo il thread per il timer (NOITMER)...\n"));
|
||||
D(bug("Creating thread for the timer (NOITIMER)...\n"));
|
||||
|
||||
timer_alive = 1;
|
||||
timer_thread = SDL_CreateThread(RunTimer, NULL);
|
||||
|
||||
Reference in New Issue
Block a user