Mercurial > sdl-ios-xcode
comparison include/SDL_compat.h @ 2328:91e601d9df8b
re: bug#563. checking in some commented out trace code and a fix so that the in testalpha.c the background only flashes when alpha == 255. The problem that is being
fixed is caused by clearing SDL_COPY_RLE_COLORKEY without setting SDL_COPY_RLE_DESIRED in SDL_UnRELSurface.
author | Bob Pendleton <bob@pendleton.com> |
---|---|
date | Fri, 14 Mar 2008 18:17:49 +0000 |
parents | d87417504c75 |
children | c1a390f6a819 |
comparison
equal
deleted
inserted
replaced
2327:7b53a8401195 | 2328:91e601d9df8b |
---|---|
207 | 207 |
208 #define SDL_SetModuleHandle(x) | 208 #define SDL_SetModuleHandle(x) |
209 #define SDL_AllocSurface SDL_CreateRGBSurface | 209 #define SDL_AllocSurface SDL_CreateRGBSurface |
210 | 210 |
211 extern DECLSPEC const SDL_version *SDLCALL SDL_Linked_Version(void); | 211 extern DECLSPEC const SDL_version *SDLCALL SDL_Linked_Version(void); |
212 extern DECLSPEC char *SDLCALL SDL_AudioDriverName(char *namebuf, int maxlen); | 212 extern DECLSPEC char *SDLCALL SDL_AudioDriverName(char *namebuf, |
213 extern DECLSPEC char *SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen); | 213 int maxlen); |
214 extern DECLSPEC char *SDLCALL SDL_VideoDriverName(char *namebuf, | |
215 int maxlen); | |
214 extern DECLSPEC const SDL_VideoInfo *SDLCALL SDL_GetVideoInfo(void); | 216 extern DECLSPEC const SDL_VideoInfo *SDLCALL SDL_GetVideoInfo(void); |
215 extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width, int height, int bpp, | 217 extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width, |
218 int height, | |
219 int bpp, | |
216 Uint32 flags); | 220 Uint32 flags); |
217 extern DECLSPEC SDL_Rect **SDLCALL SDL_ListModes(SDL_PixelFormat * format, | 221 extern DECLSPEC SDL_Rect **SDLCALL SDL_ListModes(SDL_PixelFormat * format, |
218 Uint32 flags); | 222 Uint32 flags); |
219 extern DECLSPEC SDL_Surface *SDLCALL SDL_SetVideoMode(int width, int height, | 223 extern DECLSPEC SDL_Surface *SDLCALL SDL_SetVideoMode(int width, |
220 int bpp, Uint32 flags); | 224 int height, |
225 int bpp, | |
226 Uint32 flags); | |
221 extern DECLSPEC SDL_Surface *SDLCALL SDL_GetVideoSurface(void); | 227 extern DECLSPEC SDL_Surface *SDLCALL SDL_GetVideoSurface(void); |
222 extern DECLSPEC void SDLCALL SDL_UpdateRects(SDL_Surface * screen, | 228 extern DECLSPEC void SDLCALL SDL_UpdateRects(SDL_Surface * screen, |
223 int numrects, SDL_Rect * rects); | 229 int numrects, |
224 extern DECLSPEC void SDLCALL SDL_UpdateRect(SDL_Surface * screen, Sint32 x, | 230 SDL_Rect * rects); |
225 Sint32 y, Uint32 w, Uint32 h); | 231 extern DECLSPEC void SDLCALL SDL_UpdateRect(SDL_Surface * screen, |
232 Sint32 x, | |
233 Sint32 y, | |
234 Uint32 w, | |
235 Uint32 h); | |
226 extern DECLSPEC int SDLCALL SDL_Flip(SDL_Surface * screen); | 236 extern DECLSPEC int SDLCALL SDL_Flip(SDL_Surface * screen); |
227 extern DECLSPEC int SDLCALL SDL_SetAlpha(SDL_Surface * surface, Uint32 flag, | 237 extern DECLSPEC int SDLCALL SDL_SetAlpha(SDL_Surface * surface, |
238 Uint32 flag, | |
228 Uint8 alpha); | 239 Uint8 alpha); |
229 extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormat(SDL_Surface * surface); | 240 extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormat(SDL_Surface * surface); |
230 extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormatAlpha(SDL_Surface * | 241 extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormatAlpha(SDL_Surface * surface); |
231 surface); | |
232 extern DECLSPEC void SDLCALL SDL_WM_SetCaption(const char *title, | 242 extern DECLSPEC void SDLCALL SDL_WM_SetCaption(const char *title, |
233 const char *icon); | 243 const char *icon); |
234 extern DECLSPEC void SDLCALL SDL_WM_GetCaption(const char **title, | 244 extern DECLSPEC void SDLCALL SDL_WM_GetCaption(const char **title, |
235 const char **icon); | 245 const char **icon); |
236 extern DECLSPEC void SDLCALL SDL_WM_SetIcon(SDL_Surface * icon, Uint8 * mask); | 246 extern DECLSPEC void SDLCALL SDL_WM_SetIcon(SDL_Surface * icon, |
247 Uint8 * mask); | |
237 extern DECLSPEC int SDLCALL SDL_WM_IconifyWindow(void); | 248 extern DECLSPEC int SDLCALL SDL_WM_IconifyWindow(void); |
238 extern DECLSPEC int SDLCALL SDL_WM_ToggleFullScreen(SDL_Surface * surface); | 249 extern DECLSPEC int SDLCALL SDL_WM_ToggleFullScreen(SDL_Surface * surface); |
239 extern DECLSPEC SDL_GrabMode SDLCALL SDL_WM_GrabInput(SDL_GrabMode mode); | 250 extern DECLSPEC SDL_GrabMode SDLCALL SDL_WM_GrabInput(SDL_GrabMode mode); |
240 extern DECLSPEC int SDLCALL SDL_SetPalette(SDL_Surface * surface, int flags, | 251 extern DECLSPEC int SDLCALL SDL_SetPalette(SDL_Surface * surface, |
252 int flags, | |
241 const SDL_Color * colors, | 253 const SDL_Color * colors, |
242 int firstcolor, int ncolors); | 254 int firstcolor, |
255 int ncolors); | |
243 extern DECLSPEC int SDLCALL SDL_SetColors(SDL_Surface * surface, | 256 extern DECLSPEC int SDLCALL SDL_SetColors(SDL_Surface * surface, |
244 const SDL_Color * colors, | 257 const SDL_Color * colors, |
245 int firstcolor, int ncolors); | 258 int firstcolor, |
259 int ncolors); | |
246 extern DECLSPEC int SDLCALL SDL_GetWMInfo(struct SDL_SysWMinfo *info); | 260 extern DECLSPEC int SDLCALL SDL_GetWMInfo(struct SDL_SysWMinfo *info); |
247 extern DECLSPEC Uint8 SDLCALL SDL_GetAppState(void); | 261 extern DECLSPEC Uint8 SDLCALL SDL_GetAppState(void); |
248 extern DECLSPEC void SDLCALL SDL_WarpMouse(Uint16 x, Uint16 y); | 262 extern DECLSPEC void SDLCALL SDL_WarpMouse(Uint16 x, |
263 Uint16 y); | |
249 extern DECLSPEC SDL_Overlay *SDLCALL SDL_CreateYUVOverlay(int width, | 264 extern DECLSPEC SDL_Overlay *SDLCALL SDL_CreateYUVOverlay(int width, |
250 int height, | 265 int height, |
251 Uint32 format, | 266 Uint32 format, |
252 SDL_Surface * | 267 SDL_Surface * |
253 display); | 268 display); |
255 extern DECLSPEC void SDLCALL SDL_UnlockYUVOverlay(SDL_Overlay * overlay); | 270 extern DECLSPEC void SDLCALL SDL_UnlockYUVOverlay(SDL_Overlay * overlay); |
256 extern DECLSPEC int SDLCALL SDL_DisplayYUVOverlay(SDL_Overlay * overlay, | 271 extern DECLSPEC int SDLCALL SDL_DisplayYUVOverlay(SDL_Overlay * overlay, |
257 SDL_Rect * dstrect); | 272 SDL_Rect * dstrect); |
258 extern DECLSPEC void SDLCALL SDL_FreeYUVOverlay(SDL_Overlay * overlay); | 273 extern DECLSPEC void SDLCALL SDL_FreeYUVOverlay(SDL_Overlay * overlay); |
259 extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void); | 274 extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void); |
260 extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval); | 275 extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, |
261 extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay, int *interval); | 276 int interval); |
277 extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay, | |
278 int *interval); | |
262 extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable); | 279 extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable); |
263 | 280 |
264 /* Ends C function definitions when using C++ */ | 281 /* Ends C function definitions when using C++ */ |
265 #ifdef __cplusplus | 282 #ifdef __cplusplus |
266 /* *INDENT-OFF* */ | 283 /* *INDENT-OFF* */ |