mirror of https://github.com/bsnes-emu/bsnes.git
v112.10
Fix accuracy PPU mosaic rendering when size!=0 && enable==0
This commit is contained in:
parent
b7b848eff5
commit
3ecea80ecb
|
@ -21,9 +21,11 @@ auto PPU::Background::runMode7() -> void {
|
||||||
int voffset = (int13)latch.voffset;
|
int voffset = (int13)latch.voffset;
|
||||||
|
|
||||||
uint x = mosaic.hoffset;
|
uint x = mosaic.hoffset;
|
||||||
uint y = ppu.bg1.mosaic.voffset; //BG2 vertical mosaic uses BG1 mosaic size
|
uint y = mosaic.enable ? ppu.bg1.mosaic.voffset : ppu.vcounter(); //BG2 vertical mosaic uses BG1 mosaic size
|
||||||
|
|
||||||
if(--mosaic.hcounter == 0) {
|
if(!mosaic.enable) {
|
||||||
|
mosaic.hoffset += 1;
|
||||||
|
} else if(--mosaic.hcounter == 0) {
|
||||||
mosaic.hcounter = mosaic.size + 1;
|
mosaic.hcounter = mosaic.size + 1;
|
||||||
mosaic.hoffset += mosaic.size + 1;
|
mosaic.hoffset += mosaic.size + 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue