Mercurial > sdl-ios-xcode
comparison src/timer/riscos/SDL_systimer.c @ 1035:974ba6ae0fa3
Date: Wed, 26 Jan 2005 13:37:09 GMT
From: Peter Naulls
Subject: RISC OS SDL Patches
Sam, I've attached a diff of the latest changes to libSDL for RISC OS
support. These changes are by Alan Buckley and myself.
The most significant of these are:
Optimised assembler blit rountines - I've attached the file
src/video/riscos/SDL_riscosASM.s which is needed for this.
Move to using /dev/dsp instead of its own audio implementation.
This means that src/audio/riscos/SDL_drenderer.c should be removed
Typo fixes. Mainly correct spelling of "RISC OS", but some from elsewhere
too.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 12 Feb 2005 18:01:31 +0000 |
parents | d74fbf56f2f6 |
children | c9b51268668f |
comparison
equal
deleted
inserted
replaced
1034:2eca15c3f609 | 1035:974ba6ae0fa3 |
---|---|
97 if (SDL_EventThreadID() == SDL_ThreadID()) is_event_thread = 1; | 97 if (SDL_EventThreadID() == SDL_ThreadID()) is_event_thread = 1; |
98 } else if (SDL_ThreadID() == riscos_main_thread) is_event_thread = 1; | 98 } else if (SDL_ThreadID() == riscos_main_thread) is_event_thread = 1; |
99 } else is_event_thread = 1; | 99 } else is_event_thread = 1; |
100 #endif | 100 #endif |
101 | 101 |
102 /*TODO: Next version of unixlib may allow us to use usleep here */ | 102 /*TODO: Next version of Unixlib may allow us to use usleep here */ |
103 /* for non event threads */ | 103 /* for non event threads */ |
104 | 104 |
105 /* Set the timeout interval - Linux only needs to do this once */ | 105 /* Set the timeout interval - Linux only needs to do this once */ |
106 then = SDL_GetTicks(); | 106 then = SDL_GetTicks(); |
107 | 107 |
108 do { | 108 do { |
220 } | 220 } |
221 } | 221 } |
222 | 222 |
223 int SDL_SYS_StartTimer(void) | 223 int SDL_SYS_StartTimer(void) |
224 { | 224 { |
225 SDL_SetError("Internal logic error: RISCOS uses threaded timer"); | 225 SDL_SetError("Internal logic error: RISC OS uses threaded timer"); |
226 return(-1); | 226 return(-1); |
227 } | 227 } |
228 | 228 |
229 void SDL_SYS_StopTimer(void) | 229 void SDL_SYS_StopTimer(void) |
230 { | 230 { |