rnd-20001125-2-src
[rocksndiamonds.git] / src / sdl.h
index 0b39620d1b1946c20a72454a74f2290676c76389..0fe26e037508f54e4642e8b4de757df51be8fbe9 100644 (file)
--- a/src/sdl.h
+++ b/src/sdl.h
 #if SDL_MAJOR_VERSION >= 1 && SDL_MINOR_VERSION >= 1
 #include "SDL_image.h"
 #include "SDL_mixer.h"
+#define USE_SDL_JOYSTICK
 #else
 #include "IMG.h"
 #include "mixer.h"
 #endif
 
+
+/* definitions needed for "system.c" */
+
+#define SURFACE_FLAGS          (SDL_SWSURFACE)
+
+
+/* system dependent definitions */
+
+#define PLATFORM_STRING                "SDL"
+#define FULLSCREEN_STATUS      FULLSCREEN_AVAILABLE
+
+
 /* SDL type definitions */
 
 typedef SDL_Surface           *Bitmap;
@@ -290,6 +303,8 @@ typedef int                 Colormap;
 
 /* SDL function definitions */
 
+inline void SDLInitBufferedDisplay(DrawBuffer *, DrawWindow *);
+inline boolean SDLSetVideoMode(DrawBuffer *);
 inline void SDLCopyArea(SDL_Surface *, SDL_Surface *,
                         int, int, int, int, int, int);
 inline void SDLFillRectangle(SDL_Surface *, int, int, int, int, unsigned int);