comparison src/video/riscos/SDL_riscosvideo.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 b8d311d90021
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 23 March 2003 25 23 March 2003
26 26
27 Implements RISCOS display device management. 27 Implements RISC OS display device management.
28 Routines for full screen and wimp modes are split 28 Routines for full screen and wimp modes are split
29 into other source files. 29 into other source files.
30 */ 30 */
31 31
32 #include <stdio.h> 32 #include <stdio.h>
81 static int RISCOS_AllocHWSurface(_THIS, SDL_Surface *surface); 81 static int RISCOS_AllocHWSurface(_THIS, SDL_Surface *surface);
82 static int RISCOS_LockHWSurface(_THIS, SDL_Surface *surface); 82 static int RISCOS_LockHWSurface(_THIS, SDL_Surface *surface);
83 static void RISCOS_UnlockHWSurface(_THIS, SDL_Surface *surface); 83 static void RISCOS_UnlockHWSurface(_THIS, SDL_Surface *surface);
84 static void RISCOS_FreeHWSurface(_THIS, SDL_Surface *surface); 84 static void RISCOS_FreeHWSurface(_THIS, SDL_Surface *surface);
85 85
86 /* RISCOS driver bootstrap functions */ 86 /* RISC OS driver bootstrap functions */
87 87
88 static int RISCOS_Available(void) 88 static int RISCOS_Available(void)
89 { 89 {
90 return(1); 90 return(1);
91 } 91 }
148 device->ToggleFullScreen = NULL; /*RISCOS_ToggleFullScreen;*/ 148 device->ToggleFullScreen = NULL; /*RISCOS_ToggleFullScreen;*/
149 149
150 /* Set other entries for fullscreen mode */ 150 /* Set other entries for fullscreen mode */
151 FULLSCREEN_SetDeviceMode(device); 151 FULLSCREEN_SetDeviceMode(device);
152 152
153 /* Turn off unixlib file name translation - we hope people have initialised
154 the video system before they try to read any files */
155 /* __riscosify_control = __RISCOSIFY_NO_PROCESS;
156 *//* We may be able to eventually replace our processing of filenames with the correct flags above*/
157
158 return device; 153 return device;
159 } 154 }
160 155
161 VideoBootStrap RISCOS_bootstrap = { 156 VideoBootStrap RISCOS_bootstrap = {
162 RISCOSVID_DRIVER_NAME, "RISCOS video driver", 157 RISCOSVID_DRIVER_NAME, "RISC OS video driver",
163 RISCOS_Available, RISCOS_CreateDevice 158 RISCOS_Available, RISCOS_CreateDevice
164 }; 159 };
165 160
166 161
167 int RISCOS_VideoInit(_THIS, SDL_PixelFormat *vformat) 162 int RISCOS_VideoInit(_THIS, SDL_PixelFormat *vformat)