Seems like even 1 second isn't enough for some games.

This commit is contained in:
Lior Halphon 2016-09-30 14:12:41 +03:00
parent 4f9b86c900
commit 5c5b1cd3ae

View File

@ -98,8 +98,8 @@ static void vblank(GB_gameboy_t *gb)
} }
} }
/* Let the test run for an extra second if the screen is off/disabled */ /* Let the test run for extra four seconds if the screen is off/disabled */
if (!is_screen_blank || frames >= test_length + 60) { if (!is_screen_blank || frames >= test_length + 60 * 4) {
FILE *f = fopen(bmp_filename, "wb"); FILE *f = fopen(bmp_filename, "wb");
fwrite(&bmp_header, 1, sizeof(bmp_header), f); fwrite(&bmp_header, 1, sizeof(bmp_header), f);
fwrite(&bitmap, 1, sizeof(bitmap), f); fwrite(&bitmap, 1, sizeof(bitmap), f);