rnd-20001203-5-src
[rocksndiamonds.git] / src / libgame / msdos.c
index a49148817ce28d1a3b79d368e9d7123fe6184024..16bbe771c3024842a5e62a1070269aa3938eabbe 100644 (file)
 *  msdos.c                                                 *
 ***********************************************************/
 
-#include "libgame.h"
+#include "system.h"
+
 
 #if defined(PLATFORM_MSDOS)
 
+#include "sound.h"
+#include "misc.h"
+#include "pcx.h"
+
 #define AllegroDefaultScreen() (display->screens[display->default_screen])
 
 /* allegro driver declarations */
@@ -442,8 +447,7 @@ Pixmap XCreatePixmap(Display *display, Drawable d, unsigned int width,
   BITMAP *bitmap = NULL;
 
   if (gfx_capabilities & GFX_HW_VRAM_BLIT &&
-      width  == playfield.scrollbuffer_width &&
-      height == playfield.scrollbuffer_height)
+      width  == gfx.scrollbuffer_width && height == gfx.scrollbuffer_height)
     bitmap = create_video_bitmap(width, height);
 
   if (bitmap == NULL)
@@ -916,7 +920,7 @@ void XAutoRepeatOff(Display *display)
   keyboard_auto_repeat = FALSE;
 }
 
-boolean MSDOSOpenAudio(void)
+Bool MSDOSOpenAudio(void)
 {
   return allegro_init_audio();
 }