rnd-19980904-1
[rocksndiamonds.git] / src / main.c
index eed5609420106a9984b6cbec570c84d38565a414..2395ec1b708f19e5bacf74727bedb65f6239bee7 100644 (file)
 #include "sound.h"
 #include "joystick.h"
 
+#ifdef MSDOS
+#include <fcntl.h>
+#endif
+
 Display        *display;
 int            screen;
 Window         window;
@@ -25,6 +29,12 @@ GC           gc, clip_gc[NUM_PIXMAPS];
 Pixmap         pix[NUM_PIXMAPS];
 Pixmap         clipmask[NUM_PIXMAPS];
 
+
+Pixmap         test_pix[NUM_PICTURES];
+Pixmap         test_clipmask[NUM_PICTURES];
+int            test_picture_count = 0;
+
+
 #ifdef XPM_INCLUDE_FILE
 XpmAttributes  xpm_att[NUM_PICTURES];
 #endif
@@ -188,6 +198,10 @@ int main(int argc, char *argv[])
   if (argc>1)
     level_directory = argv[1];
 
+#ifdef MSDOS
+  _fmode = O_BINARY;
+#endif
+
   OpenAll(argc,argv);
   EventLoop();
   CloseAll();