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.
This commit is contained in:
Sam Lantinga
2011-02-03 21:13:55 -08:00
parent 8675df42c8
commit 6d8925632d
3 changed files with 89 additions and 119 deletions

View File

@@ -273,8 +273,8 @@ struct SDL_SysWMinfo;
#define SDL_AllocSurface SDL_CreateRGBSurface
extern DECLSPEC const SDL_version *SDLCALL SDL_Linked_Version(void);
extern DECLSPEC char *SDLCALL SDL_AudioDriverName(char *namebuf, int maxlen);
extern DECLSPEC char *SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen);
extern DECLSPEC const char *SDLCALL SDL_AudioDriverName(char *namebuf, int maxlen);
extern DECLSPEC const char *SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen);
extern DECLSPEC const SDL_VideoInfo *SDLCALL SDL_GetVideoInfo(void);
extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width,
int height,