rnd-20060818-1-src
[rocksndiamonds.git] / src / game_em / input.c
index 353b36eec71687f862d7a44fd7b2f7a0061c9b16..8ea8c04b9cb3fd63bfca1050e687979bf25e6d88 100644 (file)
@@ -62,14 +62,41 @@ void InitGameEngine_EM()
 
   game_initscreen();
   game_animscreen();
+
+  /* blit playfield from scroll buffer to back buffer for fading in */
+  BlitScreenToBitmap_EM(backbuffer);
 }
 
 void GameActions_EM(byte action[MAX_PLAYERS], boolean warp_mode)
 {
   int i;
 
+#if 0
+  static int foo = -1;
+
+  if (action[0] == 0 && foo != 0)
+    printf("KEY RELEASED @ %05d\n", FrameCounter);
+
+  foo = action[0];
+#endif
+
+#if 0
+#if 1
+  if (FrameCounter % 10 == 0)
+#endif
+    printf("::: %05d: %lu, %d\n", FrameCounter, RandomEM, frame);
+#endif
+
   game_animscreen();
 
+#if 1
+  SyncDisplay();
+
+  blitscreen();
+
+  FlushDisplay();
+#endif
+
   RandomEM = RandomEM * 129 + 1;
 
   frame = (frame - 1) & 7;