From ea089273e830b931f763750e43b8c491aa9655eb Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 16 Sep 2012 03:36:34 +0300 Subject: [PATCH] always fill on blanking apparently other emulation code depends on this.. --- fce.c | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) 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) -- 2.39.5