include/SDL_compat.h
branchSDL-1.3
changeset 1712 931d111e737a
parent 1683 396a35389351
child 1713 3e66ed1690e4
equal deleted inserted replaced
1711:865ba39fc96d 1712:931d111e737a
    24 
    24 
    25 #ifndef _SDL_compat_h
    25 #ifndef _SDL_compat_h
    26 #define _SDL_compat_h
    26 #define _SDL_compat_h
    27 
    27 
    28 #include "SDL_video.h"
    28 #include "SDL_video.h"
    29 #include "SDL_syswm.h"
    29 #include "SDL_version.h"
    30 
    30 
    31 #include "begin_code.h"
    31 #include "begin_code.h"
    32 /* Set up for C function definitions, even when using C++ */
    32 /* Set up for C function definitions, even when using C++ */
    33 #ifdef __cplusplus
    33 #ifdef __cplusplus
    34 /* *INDENT-OFF* */
    34 /* *INDENT-OFF* */
   115     SDL_GRAB_QUERY = -1,
   115     SDL_GRAB_QUERY = -1,
   116     SDL_GRAB_OFF = 0,
   116     SDL_GRAB_OFF = 0,
   117     SDL_GRAB_ON = 1
   117     SDL_GRAB_ON = 1
   118 } SDL_GrabMode;
   118 } SDL_GrabMode;
   119 
   119 
       
   120 struct SDL_SysWMinfo;
       
   121 
   120 #define SDL_AllocSurface    SDL_CreateRGBSurface
   122 #define SDL_AllocSurface    SDL_CreateRGBSurface
   121 
   123 
   122 extern DECLSPEC const SDL_version *SDLCALL SDL_Linked_Version(void);
   124 extern DECLSPEC const SDL_version *SDLCALL SDL_Linked_Version(void);
   123 extern DECLSPEC char *SDLCALL SDL_AudioDriverName(char *namebuf, int maxlen);
   125 extern DECLSPEC char *SDLCALL SDL_AudioDriverName(char *namebuf, int maxlen);
   124 extern DECLSPEC char *SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen);
   126 extern DECLSPEC char *SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen);
   149                                            const SDL_Color * colors,
   151                                            const SDL_Color * colors,
   150                                            int firstcolor, int ncolors);
   152                                            int firstcolor, int ncolors);
   151 extern DECLSPEC int SDLCALL SDL_SetColors(SDL_Surface * surface,
   153 extern DECLSPEC int SDLCALL SDL_SetColors(SDL_Surface * surface,
   152                                           const SDL_Color * colors,
   154                                           const SDL_Color * colors,
   153                                           int firstcolor, int ncolors);
   155                                           int firstcolor, int ncolors);
   154 extern DECLSPEC int SDLCALL SDL_GetWMInfo(SDL_SysWMinfo * info);
   156 extern DECLSPEC int SDLCALL SDL_GetWMInfo(struct SDL_SysWMinfo * info);
   155 extern DECLSPEC Uint8 SDLCALL SDL_GetAppState(void);
   157 extern DECLSPEC Uint8 SDLCALL SDL_GetAppState(void);
   156 extern DECLSPEC void SDLCALL SDL_WarpMouse(Uint16 x, Uint16 y);
   158 extern DECLSPEC void SDLCALL SDL_WarpMouse(Uint16 x, Uint16 y);
   157 extern DECLSPEC SDL_Overlay *SDLCALL SDL_CreateYUVOverlay(int width,
   159 extern DECLSPEC SDL_Overlay *SDLCALL SDL_CreateYUVOverlay(int width,
   158                                                           int height,
   160                                                           int height,
   159                                                           Uint32 format,
   161                                                           Uint32 format,