From: notaz Date: Sun, 16 Sep 2012 00:36:34 +0000 (+0300) Subject: always fill on blanking X-Git-Tag: r1~6 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea089273e830b931f763750e43b8c491aa9655eb;p=fceu.git always fill on blanking apparently other emulation code depends on this.. --- diff --git a/fce.c b/fce.c index e83085e..78a75b6 100644 --- a/fce.c +++ b/fce.c @@ -631,7 +631,14 @@ static void LineUpdate(uint8 *target) return; } - if(scanline < FSettings.FirstSLine || scanline > FSettings.LastSLine) + if(!ScreenON) + { + tem=Pal[0]|0x40; + tem|=tem << 8; + tem|=tem << 16; + FCEU_dwmemset(target,tem,256); + } + else if(scanline < FSettings.FirstSLine || scanline > FSettings.LastSLine) { if(PPU_hook) PRefreshLine(); @@ -640,17 +647,7 @@ static void LineUpdate(uint8 *target) } else { - if(ScreenON) - { - BGRender(target); - } - else - { - tem=Pal[0]|0x40; - tem|=tem << 8; - tem|=tem << 16; - FCEU_dwmemset(target,tem,256); - } + BGRender(target); } if(InputScanlineHook)