Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Commit

Permalink
Revert "nes: Fix overdraw bug"
Browse files Browse the repository at this point in the history
This reverts commit 315fd2b.
  • Loading branch information
kbeckmann committed Jan 4, 2021
1 parent 315fd2b commit 635d742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nofrendo-go/components/nofrendo/nes/nes.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ void bmp_init(bitmap_t *bitmap, int index, int width , int height, int overdraw)
bitmap->data = emulator_framebuffer;
bitmap->width = NES_SCREEN_WIDTH;
bitmap->height = NES_SCREEN_HEIGHT;
bitmap->pitch = NES_SCREEN_WIDTH + overdraw;
bitmap->pitch = NES_SCREEN_WIDTH + (overdraw * 2);

for (int i = 0; i < height; i++)
bitmap->line[i] = bitmap->data + (bitmap->pitch * i);
bitmap->line[i] = bitmap->data + (bitmap->pitch * i) + overdraw;
}


Expand Down

0 comments on commit 635d742

Please sign in to comment.