always fill on blanking
authornotaz <notasas@gmail.com>
Sun, 16 Sep 2012 00:36:34 +0000 (03:36 +0300)
committernotaz <notasas@gmail.com>
Sun, 16 Sep 2012 00:36:34 +0000 (03:36 +0300)
apparently other emulation code depends on this..

fce.c

diff --git a/fce.c b/fce.c
index e83085e..78a75b6 100644 (file)
--- 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)