mirror of https://github.com/bsnes-emu/bsnes.git
Update to bsnes v067r05 release.
This will be the final release with the current source structure. This WIP contains a bugfix so that the last scanline does not fetch OAM items. This fixes flickering in Ninja Warriors and Lord of the Rings.
This commit is contained in:
parent
254a5016e1
commit
9ea739aec1
|
@ -16,9 +16,6 @@ void sPPU::Sprite::scanline() {
|
|||
t.x = 0;
|
||||
t.y = self.vcounter();
|
||||
|
||||
if(t.y == (!self.regs.overscan ? 225 : 240) && self.regs.display_disabled == false) address_reset();
|
||||
if(t.y > (!self.regs.overscan ? 224 : 239)) return;
|
||||
|
||||
t.item_count = 0;
|
||||
t.tile_count = 0;
|
||||
|
||||
|
@ -26,6 +23,9 @@ void sPPU::Sprite::scanline() {
|
|||
auto oam_item = t.item[t.active];
|
||||
auto oam_tile = t.tile[t.active];
|
||||
|
||||
if(t.y == (!self.regs.overscan ? 225 : 240) && self.regs.display_disabled == false) address_reset();
|
||||
if(t.y >= (!self.regs.overscan ? 224 : 239)) return;
|
||||
|
||||
memset(oam_item, 0xff, 32); //default to invalid
|
||||
for(unsigned i = 0; i < 34; i++) oam_tile[i].x = 0xffff; //default to invalid
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
static const char bsnesVersion[] = "067.04";
|
||||
static const char bsnesVersion[] = "067.05";
|
||||
static const char bsnesTitle[] = "bsnes";
|
||||
static const unsigned bsnesSerializerVersion = 12;
|
||||
|
||||
|
|
Loading…
Reference in New Issue