projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-19980904
[rocksndiamonds.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index eed5609420106a9984b6cbec570c84d38565a414..08ee469ef6738edae465790c08818f1aee52b2f8 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-18,13
+18,24
@@
#include "sound.h"
#include "joystick.h"
#include "sound.h"
#include "joystick.h"
+#ifdef MSDOS
+#include <fcntl.h>
+#endif
+
Display *display;
Display *display;
+Visual *visual;
int screen;
Window window;
GC gc, clip_gc[NUM_PIXMAPS];
Pixmap pix[NUM_PIXMAPS];
Pixmap clipmask[NUM_PIXMAPS];
int screen;
Window window;
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
#ifdef XPM_INCLUDE_FILE
XpmAttributes xpm_att[NUM_PICTURES];
#endif
@@
-188,6
+199,10
@@
int main(int argc, char *argv[])
if (argc>1)
level_directory = argv[1];
if (argc>1)
level_directory = argv[1];
+#ifdef MSDOS
+ _fmode = O_BINARY;
+#endif
+
OpenAll(argc,argv);
EventLoop();
CloseAll();
OpenAll(argc,argv);
EventLoop();
CloseAll();