rnd-20001203-1-src
[rocksndiamonds.git] / src / libgame / sdl.h
index 768dc6fae176402e2f6a0ddd314216bc26c01268..cc60462b05e52fd8b926f03b51a77e2173dbd6a5 100644 (file)
@@ -24,6 +24,8 @@
 
 #define SURFACE_FLAGS          (SDL_SWSURFACE)
 
+#define SDLCOPYAREA_OPAQUE     0
+#define SDLCOPYAREA_MASKED     1
 
 /* system dependent definitions */
 
 #define FULLSCREEN_STATUS      FULLSCREEN_AVAILABLE
 
 
+/* structure definitions */
+
+struct SDLSurfaceInfo
+{
+  SDL_Surface *surface;
+  SDL_Surface *surface_masked;
+};
+
+
 /* SDL type definitions */
 
-typedef SDL_Surface           *Bitmap;
-typedef SDL_Surface           *DrawWindow;
-typedef SDL_Surface           *DrawBuffer;
+typedef struct SDLSurfaceInfo  *Bitmap;
+typedef struct SDLSurfaceInfo  *DrawBuffer;
+typedef struct SDLSurfaceInfo  *DrawWindow;
 
 typedef SDLKey                 Key;
 
@@ -299,9 +310,8 @@ typedef int                 Colormap;
 inline void SDLInitVideoDisplay(void);
 inline void SDLInitVideoBuffer(DrawBuffer *, DrawWindow *, boolean);
 inline boolean SDLSetVideoMode(DrawBuffer *, boolean);
-inline void SDLCopyArea(SDL_Surface *, SDL_Surface *,
-                        int, int, int, int, int, int);
-inline void SDLFillRectangle(SDL_Surface *, int, int, int, int, unsigned int);
+inline void SDLCopyArea(Bitmap, Bitmap, int, int, int, int, int, int, int);
+inline void SDLFillRectangle(Bitmap, int, int, int, int, unsigned int);
 inline void SDLDrawSimpleLine(SDL_Surface *, int, int, int, int, unsigned int);
 
 inline boolean SDLOpenAudio(void);