#include "main_em.h"
-
#include <signal.h>
-#if !defined(TARGET_SDL)
-#include <sys/wait.h>
-#endif
-
Bitmap *objBitmap;
Bitmap *sprBitmap;
static int sound_pid = -1;
int sound_pipe[2] = { -1, -1 }; /* for communication */
short *sound_data[SAMPLE_MAX]; /* pointer to sound data */
-long sound_length[SAMPLE_MAX]; /* length of sound data */
+int sound_length[SAMPLE_MAX]; /* length of sound data */
static const char *sound_names[SAMPLE_MAX] =
{
sprmaskBitmap = emc_bitmaps[1]->clip_mask;
#endif
+#if 0
+ printf("::: CreateBitmap: %d, %d => %d\n",
+ MAX_BUF_XSIZE, TILEX, MAX_BUF_XSIZE * TILEX);
+
screenBitmap = CreateBitmap(MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY,
DEFAULT_DEPTH);
global_em_info.screenbuffer = screenBitmap;
+#endif
#endif
return(0);
}
+void InitGfxBuffers_EM()
+{
+
+#if 1
+
+#if 0
+ printf("::: InitGfxBuffers_EM: %d, %d => %d\n",
+ MAX_BUF_XSIZE, TILEX, MAX_BUF_XSIZE * TILEX);
+#endif
+
+ ReCreateBitmap(&screenBitmap, MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY,
+ DEFAULT_DEPTH);
+
+ global_em_info.screenbuffer = screenBitmap;
+
+#else
+
+ printf("::: CreateBitmap: %d, %d => %d\n",
+ MAX_BUF_XSIZE, TILEX, MAX_BUF_XSIZE * TILEX);
+
+ screenBitmap = CreateBitmap(MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY,
+ DEFAULT_DEPTH);
+
+ global_em_info.screenbuffer = screenBitmap;
+#endif
+}
+
void em_open_all()
{
/* pre-calculate some data */
clear_mem(play, sizeof(play));
}
-unsigned int InitEngineRandom_EM(long seed)
+unsigned int InitEngineRandom_EM(int seed)
{
if (seed == NEW_RANDOMIZE)
{