include/SDL_compat.h
branchSDL-1.3
changeset 1670 eef792d31de8
parent 1669 9857d21967bb
child 1675 d33dcfc3fde7
     1.1 --- a/include/SDL_compat.h	Mon May 29 05:08:33 2006 +0000
     1.2 +++ b/include/SDL_compat.h	Wed Jun 07 16:10:28 2006 +0000
     1.3 @@ -36,22 +36,18 @@
     1.4  /* *INDENT-ON* */
     1.5  #endif
     1.6  
     1.7 -#define SDL_SWSURFACE	0x00000000
     1.8 -#define SDL_HWSURFACE	0x00000001
     1.9 -#define SDL_ASYNCBLIT	0x00000004
    1.10 -#define SDL_ANYFORMAT	0x10000000
    1.11 -#define SDL_HWPALETTE	0x20000000
    1.12 -#define SDL_DOUBLEBUF	0x40000000
    1.13 -#define SDL_FULLSCREEN	0x80000000
    1.14 -#define SDL_OPENGL      0x00000002
    1.15 -#define SDL_INTERNALOPENGL 0x00000008
    1.16 -#define SDL_RESIZABLE	0x00000010
    1.17 -#define SDL_NOFRAME	0x00000020
    1.18 -#define SDL_HWACCEL	0x00000100
    1.19 -#define SDL_SRCCOLORKEY	0x00001000
    1.20 -#define SDL_RLEACCELOK	0x00002000
    1.21 -#define SDL_RLEACCEL	0x00004000
    1.22 -#define SDL_SRCALPHA	0x00010000
    1.23 +#define SDL_SWSURFACE       0x00000000
    1.24 +#define SDL_ANYFORMAT       0x00100000
    1.25 +#define SDL_HWPALETTE       0x00200000
    1.26 +#define SDL_DOUBLEBUF       0x00400000
    1.27 +#define SDL_FULLSCREEN      0x00800000
    1.28 +#define SDL_RESIZABLE       0x01000000
    1.29 +#define SDL_NOFRAME         0x02000000
    1.30 +#define SDL_OPENGL          0x04000000
    1.31 +#define SDL_ASYNCBLIT       0x00000000
    1.32 +#define SDL_HWACCEL         0x00000000
    1.33 +#define SDL_SCREEN_SURFACE  0x10000000  /* Surface is a window screen surface */
    1.34 +#define SDL_SHADOW_SURFACE  0x20000000  /* Surface is a window shadow surface */
    1.35  
    1.36  #define SDL_APPMOUSEFOCUS	0x01
    1.37  #define SDL_APPINPUTFOCUS	0x02
    1.38 @@ -64,6 +60,25 @@
    1.39  #define SDL_VIDEORESIZE	SDL_EVENT_RESERVED2
    1.40  #define SDL_VIDEOEXPOSE	SDL_EVENT_RESERVED3
    1.41  
    1.42 +typedef struct SDL_VideoInfo
    1.43 +{
    1.44 +    Uint32 hw_available:1;
    1.45 +    Uint32 wm_available:1;
    1.46 +    Uint32 UnusedBits1:6;
    1.47 +    Uint32 UnusedBits2:1;
    1.48 +    Uint32 blit_hw:1;
    1.49 +    Uint32 blit_hw_CC:1;
    1.50 +    Uint32 blit_hw_A:1;
    1.51 +    Uint32 blit_sw:1;
    1.52 +    Uint32 blit_sw_CC:1;
    1.53 +    Uint32 blit_sw_A:1;
    1.54 +    Uint32 blit_fill:1;
    1.55 +    Uint32 UnusedBits3:16;
    1.56 +    Uint32 video_mem;
    1.57 +
    1.58 +    SDL_PixelFormat *vfmt;
    1.59 +} SDL_VideoInfo;
    1.60 +
    1.61  typedef enum
    1.62  {
    1.63      SDL_GRAB_QUERY = -1,
    1.64 @@ -71,9 +86,12 @@
    1.65      SDL_GRAB_ON = 1
    1.66  } SDL_GrabMode;
    1.67  
    1.68 +#define SDL_AllocSurface    SDL_CreateRGBSurface
    1.69 +
    1.70  extern DECLSPEC const SDL_version *SDLCALL SDL_Linked_Version(void);
    1.71  extern DECLSPEC char *SDLCALL SDL_AudioDriverName(char *namebuf, int maxlen);
    1.72  extern DECLSPEC char *SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen);
    1.73 +extern DECLSPEC const SDL_VideoInfo *SDLCALL SDL_GetVideoInfo(void);
    1.74  extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width, int height, int bpp,
    1.75                                              Uint32 flags);
    1.76  extern DECLSPEC SDL_Rect **SDLCALL SDL_ListModes(SDL_PixelFormat * format,
    1.77 @@ -81,6 +99,14 @@
    1.78  extern DECLSPEC SDL_Surface *SDLCALL SDL_SetVideoMode(int width, int height,
    1.79                                                        int bpp, Uint32 flags);
    1.80  extern DECLSPEC SDL_Surface *SDLCALL SDL_GetVideoSurface(void);
    1.81 +extern DECLSPEC void SDLCALL SDL_UpdateRects(SDL_Surface * screen,
    1.82 +                                             int numrects, SDL_Rect * rects);
    1.83 +extern DECLSPEC void SDLCALL SDL_UpdateRect(SDL_Surface * screen, Sint32 x,
    1.84 +                                            Sint32 y, Uint32 w, Uint32 h);
    1.85 +extern DECLSPEC int SDLCALL SDL_Flip(SDL_Surface * screen);
    1.86 +extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormat(SDL_Surface * surface);
    1.87 +extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormatAlpha(SDL_Surface *
    1.88 +                                                            surface);
    1.89  extern DECLSPEC void SDLCALL SDL_WM_SetCaption(const char *title,
    1.90                                                 const char *icon);
    1.91  extern DECLSPEC void SDLCALL SDL_WM_GetCaption(char **title, char **icon);
    1.92 @@ -92,6 +118,9 @@
    1.93  extern DECLSPEC int SDLCALL SDL_SetPalette(SDL_Surface * surface, int flags,
    1.94                                             SDL_Color * colors,
    1.95                                             int firstcolor, int ncolors);
    1.96 +extern DECLSPEC int SDLCALL SDL_SetScreenColors(SDL_Surface * screen,
    1.97 +                                                SDL_Color * colors,
    1.98 +                                                int firstcolor, int ncolors);
    1.99  extern DECLSPEC int SDLCALL SDL_GetWMInfo(SDL_SysWMinfo * info);
   1.100  
   1.101  /* Ends C function definitions when using C++ */
   1.102 @@ -103,3 +132,6 @@
   1.103  #include "close_code.h"
   1.104  
   1.105  #endif /* _SDL_compat_h */
   1.106 +
   1.107 +/* vi: set ts=4 sw=4 expandtab: */
   1.108 +extern DECLSPEC void SDLCALL SDL_WarpMouse(Uint16 x, Uint16 y);