comparison include/SDL_compat.h @ 5172:ededa1ccf91c

Switched the SDL 1.2 compatibility to use the window surface, so it's fast even when there's no hardware acceleration available. This means that the YUV overlay now uses software, but that's okay since fast YUV code should be using the textures now anyway.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 03 Feb 2011 21:13:55 -0800
parents 2f44e6969a59
children 443a850284a1
comparison
equal deleted inserted replaced
5171:db487f28419e 5172:ededa1ccf91c
271 271
272 #define SDL_SetModuleHandle(x) 272 #define SDL_SetModuleHandle(x)
273 #define SDL_AllocSurface SDL_CreateRGBSurface 273 #define SDL_AllocSurface SDL_CreateRGBSurface
274 274
275 extern DECLSPEC const SDL_version *SDLCALL SDL_Linked_Version(void); 275 extern DECLSPEC const SDL_version *SDLCALL SDL_Linked_Version(void);
276 extern DECLSPEC char *SDLCALL SDL_AudioDriverName(char *namebuf, int maxlen); 276 extern DECLSPEC const char *SDLCALL SDL_AudioDriverName(char *namebuf, int maxlen);
277 extern DECLSPEC char *SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen); 277 extern DECLSPEC const char *SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen);
278 extern DECLSPEC const SDL_VideoInfo *SDLCALL SDL_GetVideoInfo(void); 278 extern DECLSPEC const SDL_VideoInfo *SDLCALL SDL_GetVideoInfo(void);
279 extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width, 279 extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width,
280 int height, 280 int height,
281 int bpp, Uint32 flags); 281 int bpp, Uint32 flags);
282 extern DECLSPEC SDL_Rect **SDLCALL SDL_ListModes(const SDL_PixelFormat * 282 extern DECLSPEC SDL_Rect **SDLCALL SDL_ListModes(const SDL_PixelFormat *