binji / binjgb

Gameboy emulator implemented in C, that also runs in the browser
https://binji.github.io/binjgb/
MIT License
550 stars 62 forks source link

Scanlines with the BG/Window disabled don't clear old sprite pixels #40

Closed tbsp closed 3 years ago

tbsp commented 3 years ago

If a game has the BG and window disabled, but objects enabled, pixels from sprites linger once drawn until overwritten by sprites once again.

tbsp commented 3 years ago

sprite_bug.zip This ROM includes a simple sprite to move around with the BG/Win disabled to demonstrate the bug.

binji commented 3 years ago

Thanks! Should be fixed in https://github.com/binji/binjgb/commit/408bee8ca1fdc83c15422c323a9e27bf8d35bfcd.