From b73493b49270a38bd1045b1d7a058bb949726cdf Mon Sep 17 00:00:00 2001 From: byuu <2107894+byuu@users.noreply.github.com> Date: Thu, 22 Aug 2019 00:50:59 +0900 Subject: [PATCH] Fix for Great Battle IV background graphics. --- bsnes/sfc/ppu-fast/mode7.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bsnes/sfc/ppu-fast/mode7.cpp b/bsnes/sfc/ppu-fast/mode7.cpp index d54d9d13..08a33429 100644 --- a/bsnes/sfc/ppu-fast/mode7.cpp +++ b/bsnes/sfc/ppu-fast/mode7.cpp @@ -1,8 +1,4 @@ auto PPU::Line::renderMode7(PPU::IO::Background& self, uint source) -> void { - //EXTBG is only really used by games to give the mode 7 layer two priority levels - //especially with HD mode 7, it's just wasteful to render BG1 just to be overwritten by BG2 - if(io.extbg && source == Source::BG1) return; - //HD mode 7 support if(!ppu.hdMosaic() || !self.mosaicEnable || !io.mosaicSize) { if(ppu.hdScale() > 1) return renderMode7HD(self, source); @@ -20,6 +16,8 @@ auto PPU::Line::renderMode7(PPU::IO::Background& self, uint source) -> void { int hoffset = (int13)io.mode7.hoffset; int voffset = (int13)io.mode7.voffset; +//if(source==Source::BG1&&y==1) print(a, " ", b, " ", c, " ", d, " ", hcenter, " ", vcenter, " ", hoffset, " ", voffset, "\n"); + uint mosaicCounter = 1; uint mosaicPalette = 0; uint mosaicPriority = 0;