Mercurial > sdl-ios-xcode
comparison src/video/riscos/SDL_wimppoll.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 | d90b362628ea |
comparison
equal
deleted
inserted
replaced
1034:2eca15c3f609 | 1035:974ba6ae0fa3 |
---|---|
19 Sam Lantinga | 19 Sam Lantinga |
20 slouken@devolution.com | 20 slouken@devolution.com |
21 */ | 21 */ |
22 | 22 |
23 /* | 23 /* |
24 File added by Alan Buckley (alan_baa@hotmail.com) for RISCOS compatability | 24 File added by Alan Buckley (alan_baa@hotmail.com) for RISC OS compatability |
25 27 March 2003 | 25 27 March 2003 |
26 | 26 |
27 Implements Pumping of events and WIMP polling | 27 Implements Pumping of events and WIMP polling |
28 */ | 28 */ |
29 | 29 |
31 #include "SDL_syswm.h" | 31 #include "SDL_syswm.h" |
32 #include "SDL_sysevents.h" | 32 #include "SDL_sysevents.h" |
33 #include "SDL_events_c.h" | 33 #include "SDL_events_c.h" |
34 #include "SDL_riscosvideo.h" | 34 #include "SDL_riscosvideo.h" |
35 #include "SDL_riscosevents_c.h" | 35 #include "SDL_riscosevents_c.h" |
36 #include "SDL_riscosmouse_c.h" | |
36 #include "SDL_timer_c.h" | 37 #include "SDL_timer_c.h" |
37 | 38 |
38 #include "memory.h" | 39 #include "memory.h" |
39 #include "stdlib.h" | 40 #include "stdlib.h" |
40 #include "ctype.h" | 41 #include "ctype.h" |
59 | 60 |
60 extern void WIMP_PollMouse(_THIS); | 61 extern void WIMP_PollMouse(_THIS); |
61 extern void RISCOS_PollKeyboard(); | 62 extern void RISCOS_PollKeyboard(); |
62 | 63 |
63 #ifdef DISABLE_THREADS | 64 #ifdef DISABLE_THREADS |
64 extern void DRenderer_FillBuffers(); | |
65 | |
66 /* Timer running function */ | 65 /* Timer running function */ |
67 extern void RISCOS_CheckTimer(); | 66 extern void RISCOS_CheckTimer(); |
68 | 67 |
69 #else | 68 #else |
70 extern int riscos_using_threads; | 69 extern int riscos_using_threads; |
83 { | 82 { |
84 WIMP_Poll(this, 0); | 83 WIMP_Poll(this, 0); |
85 if (hasFocus) RISCOS_PollKeyboard(); | 84 if (hasFocus) RISCOS_PollKeyboard(); |
86 if (mouseInWindow) WIMP_PollMouse(this); | 85 if (mouseInWindow) WIMP_PollMouse(this); |
87 #ifdef DISABLE_THREADS | 86 #ifdef DISABLE_THREADS |
88 DRenderer_FillBuffers(); | |
89 if (SDL_timer_running) RISCOS_CheckTimer(); | 87 if (SDL_timer_running) RISCOS_CheckTimer(); |
90 #endif | 88 #endif |
91 } | 89 } |
92 | 90 |
93 | 91 |
327 if (current_video && current_video->hidden->window_handle) | 325 if (current_video && current_video->hidden->window_handle) |
328 { | 326 { |
329 WIMP_Poll(current_video, 0); | 327 WIMP_Poll(current_video, 0); |
330 } | 328 } |
331 #ifdef DISABLE_THREADS | 329 #ifdef DISABLE_THREADS |
332 /* Keep sound buffers running */ | |
333 DRenderer_FillBuffers(); | |
334 if (SDL_timer_running) RISCOS_CheckTimer(); | 330 if (SDL_timer_running) RISCOS_CheckTimer(); |
335 #endif | 331 #endif |
336 } | 332 } |