include/SDL_compat.h
branchSDL-1.3
changeset 1670 eef792d31de8
parent 1669 9857d21967bb
child 1675 d33dcfc3fde7
--- a/include/SDL_compat.h	Mon May 29 05:08:33 2006 +0000
+++ b/include/SDL_compat.h	Wed Jun 07 16:10:28 2006 +0000
@@ -36,22 +36,18 @@
 /* *INDENT-ON* */
 #endif
 
-#define SDL_SWSURFACE	0x00000000
-#define SDL_HWSURFACE	0x00000001
-#define SDL_ASYNCBLIT	0x00000004
-#define SDL_ANYFORMAT	0x10000000
-#define SDL_HWPALETTE	0x20000000
-#define SDL_DOUBLEBUF	0x40000000
-#define SDL_FULLSCREEN	0x80000000
-#define SDL_OPENGL      0x00000002
-#define SDL_INTERNALOPENGL 0x00000008
-#define SDL_RESIZABLE	0x00000010
-#define SDL_NOFRAME	0x00000020
-#define SDL_HWACCEL	0x00000100
-#define SDL_SRCCOLORKEY	0x00001000
-#define SDL_RLEACCELOK	0x00002000
-#define SDL_RLEACCEL	0x00004000
-#define SDL_SRCALPHA	0x00010000
+#define SDL_SWSURFACE       0x00000000
+#define SDL_ANYFORMAT       0x00100000
+#define SDL_HWPALETTE       0x00200000
+#define SDL_DOUBLEBUF       0x00400000
+#define SDL_FULLSCREEN      0x00800000
+#define SDL_RESIZABLE       0x01000000
+#define SDL_NOFRAME         0x02000000
+#define SDL_OPENGL          0x04000000
+#define SDL_ASYNCBLIT       0x00000000
+#define SDL_HWACCEL         0x00000000
+#define SDL_SCREEN_SURFACE  0x10000000  /* Surface is a window screen surface */
+#define SDL_SHADOW_SURFACE  0x20000000  /* Surface is a window shadow surface */
 
 #define SDL_APPMOUSEFOCUS	0x01
 #define SDL_APPINPUTFOCUS	0x02
@@ -64,6 +60,25 @@
 #define SDL_VIDEORESIZE	SDL_EVENT_RESERVED2
 #define SDL_VIDEOEXPOSE	SDL_EVENT_RESERVED3
 
+typedef struct SDL_VideoInfo
+{
+    Uint32 hw_available:1;
+    Uint32 wm_available:1;
+    Uint32 UnusedBits1:6;
+    Uint32 UnusedBits2:1;
+    Uint32 blit_hw:1;
+    Uint32 blit_hw_CC:1;
+    Uint32 blit_hw_A:1;
+    Uint32 blit_sw:1;
+    Uint32 blit_sw_CC:1;
+    Uint32 blit_sw_A:1;
+    Uint32 blit_fill:1;
+    Uint32 UnusedBits3:16;
+    Uint32 video_mem;
+
+    SDL_PixelFormat *vfmt;
+} SDL_VideoInfo;
+
 typedef enum
 {
     SDL_GRAB_QUERY = -1,
@@ -71,9 +86,12 @@
     SDL_GRAB_ON = 1
 } SDL_GrabMode;
 
+#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 SDL_VideoInfo *SDLCALL SDL_GetVideoInfo(void);
 extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width, int height, int bpp,
                                             Uint32 flags);
 extern DECLSPEC SDL_Rect **SDLCALL SDL_ListModes(SDL_PixelFormat * format,
@@ -81,6 +99,14 @@
 extern DECLSPEC SDL_Surface *SDLCALL SDL_SetVideoMode(int width, int height,
                                                       int bpp, Uint32 flags);
 extern DECLSPEC SDL_Surface *SDLCALL SDL_GetVideoSurface(void);
+extern DECLSPEC void SDLCALL SDL_UpdateRects(SDL_Surface * screen,
+                                             int numrects, SDL_Rect * rects);
+extern DECLSPEC void SDLCALL SDL_UpdateRect(SDL_Surface * screen, Sint32 x,
+                                            Sint32 y, Uint32 w, Uint32 h);
+extern DECLSPEC int SDLCALL SDL_Flip(SDL_Surface * screen);
+extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormat(SDL_Surface * surface);
+extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormatAlpha(SDL_Surface *
+                                                            surface);
 extern DECLSPEC void SDLCALL SDL_WM_SetCaption(const char *title,
                                                const char *icon);
 extern DECLSPEC void SDLCALL SDL_WM_GetCaption(char **title, char **icon);
@@ -92,6 +118,9 @@
 extern DECLSPEC int SDLCALL SDL_SetPalette(SDL_Surface * surface, int flags,
                                            SDL_Color * colors,
                                            int firstcolor, int ncolors);
+extern DECLSPEC int SDLCALL SDL_SetScreenColors(SDL_Surface * screen,
+                                                SDL_Color * colors,
+                                                int firstcolor, int ncolors);
 extern DECLSPEC int SDLCALL SDL_GetWMInfo(SDL_SysWMinfo * info);
 
 /* Ends C function definitions when using C++ */
@@ -103,3 +132,6 @@
 #include "close_code.h"
 
 #endif /* _SDL_compat_h */
+
+/* vi: set ts=4 sw=4 expandtab: */
+extern DECLSPEC void SDLCALL SDL_WarpMouse(Uint16 x, Uint16 y);