X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgame_em%2Finput.c;h=2c6c1faacfb498d0ecbebba05a8f95934166f57b;hb=c0c5862d9ee59c70412b1c35e558101b109a8ec9;hp=b54f5526f810ab557f9395b0880c9c5b9eafdade;hpb=c74a890afba46c41f6ba6ef691bc89da0dd0135c;p=rocksndiamonds.git diff --git a/src/game_em/input.c b/src/game_em/input.c index b54f5526..2c6c1faa 100644 --- a/src/game_em/input.c +++ b/src/game_em/input.c @@ -3,9 +3,7 @@ * handle input from x11 and keyboard and joystick */ -#include "global.h" -#include "display.h" -#include "level.h" +#include "main_em.h" unsigned long RandomEM; @@ -64,6 +62,9 @@ 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) @@ -72,6 +73,14 @@ void GameActions_EM(byte action[MAX_PLAYERS], boolean warp_mode) game_animscreen(); +#if 1 + SyncDisplay(); + + blitscreen(); + + FlushDisplay(); +#endif + RandomEM = RandomEM * 129 + 1; frame = (frame - 1) & 7;