git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit d263a8f6f83d8fd7379cc6ec26667138e5034c1c
parent 46e1b79b639ac10bc741a494163d85673ac6d03a
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat,  9 Oct 2021 23:12:49 +0300

Fix sanity

Diffstat:
MTester/main.c4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Tester/main.c b/Tester/main.c @@ -170,10 +170,10 @@ static void vblank(GB_gameboy_t *gb) fwrite(&tga_header, 1, sizeof(tga_header), f); } else { - (*(uint32_t *)&bmp_header[0x2]) = sizeof(bmp_header) + sizeof(bitmap[0]) * GB_get_screen_width(gb) * GB_get_screen_height(gb); + (*(uint32_t *)&bmp_header[0x2]) = sizeof(bmp_header) + sizeof(bitmap[0]) * GB_get_screen_width(gb) * GB_get_screen_height(gb) + 2; (*(uint32_t *)&bmp_header[0x12]) = GB_get_screen_width(gb); (*(int32_t *)&bmp_header[0x16]) = -GB_get_screen_height(gb); - (*(uint32_t *)&bmp_header[0x22]) = sizeof(bitmap[0]) * GB_get_screen_width(gb) * GB_get_screen_height(gb); + (*(uint32_t *)&bmp_header[0x22]) = sizeof(bitmap[0]) * GB_get_screen_width(gb) * GB_get_screen_height(gb) + 2; fwrite(&bmp_header, 1, sizeof(bmp_header), f); } fwrite(&bitmap, 1, sizeof(bitmap[0]) * GB_get_screen_width(gb) * GB_get_screen_height(gb), f);

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.