X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftape.c;h=2cc1571b810ab495f12cca3fd7c3de11e6386cb0;hb=61c3da0;hp=bc258b66fae809f9b53889abf9958a0048b38454;hpb=d1eb03c63b0eaa2fd1bfa97d4b68ef678aa07bd2;p=rocksndiamonds.git diff --git a/src/tape.c b/src/tape.c index bc258b66..2cc1571b 100644 --- a/src/tape.c +++ b/src/tape.c @@ -186,7 +186,7 @@ static struct GadgetInfo *tape_gadget[NUM_TAPE_BUTTONS]; /* video display functions */ /* ========================================================================= */ -void DrawVideoDisplay(unsigned long state, unsigned long value) +void DrawVideoDisplay(unsigned int state, unsigned int value) { int i, j, k; static char *monatsname[12] = @@ -409,18 +409,6 @@ void DrawVideoDisplay(unsigned long state, unsigned long value) video_pos[i][j].pos->y < 0) continue; -#if 0 - printf("::: %d: %d, %ld\n", - i, - video_pos[i][j].graphic, - graphic_info[video_pos[i][j].graphic].bitmap); -#endif - -#if 0 - if (i < 9) - continue; -#endif - if (state & (1 << (i * 2 + k))) { struct GraphicInfo *gfx_bg = &graphic_info[IMG_BACKGROUND_TAPE]; @@ -447,20 +435,6 @@ void DrawVideoDisplay(unsigned long state, unsigned long value) gd_y = gfx_bg->src_y + pos->y; } -#if 0 - printf("::: %d (%d): %d, %ld - %d [%d] [%d] [%d]\n", - i, k, - video_pos[i][j].graphic, - graphic_info[video_pos[i][j].graphic].bitmap, - gfx->bitmap, - gd_bitmap, - (gd_bitmap == NULL), - 0); - - if (gd_bitmap == NULL) - printf("::: gfx %d skipped\n", video_pos[i][j].graphic); -#endif - /* some tape graphics may be undefined -- only draw if defined */ if (gd_bitmap != NULL) BlitBitmap(gd_bitmap, drawto, gd_x, gd_y, gfx->width, gfx->height, @@ -703,12 +677,12 @@ static void TapeRewind() InitRND(tape.random_seed); } -static void TapeSetRandomSeed(long random_seed) +static void TapeSetRandomSeed(int random_seed) { tape.random_seed = InitRND(random_seed); } -void TapeStartRecording(long random_seed) +void TapeStartRecording(int random_seed) { if (!TAPE_IS_STOPPED(tape)) TapeStop();