some skin adjustments
[picodrive.git] / Pico / VideoPort.c
index bb5fe4a..d70bbb5 100644 (file)
@@ -1,7 +1,7 @@
 // This is part of Pico Library\r
 \r
 // (c) Copyright 2004 Dave, All rights reserved.\r
-// (c) Copyright 2006 notaz, All rights reserved.\r
+// (c) Copyright 2006-2007, Grazvydas "notaz" Ignotas\r
 // Free for non-commercial use.\r
 \r
 // For commercial use, separate licencing terms must be obtained.\r
@@ -89,7 +89,8 @@ static void DmaSlow(int len)
 \r
   if(Pico.m.scanline != -1) {\r
     Pico.m.dma_bytes += len;\r
-    SekSetCyclesLeft(SekCyclesLeft - CheckDMA());\r
+    if ((PicoMCD&1) && (PicoOpt & 0x2000)) SekCyclesBurn(CheckDMA());\r
+    else SekSetCyclesLeftNoMCD(SekCyclesLeftNoMCD - CheckDMA());\r
   } else {\r
     // be approximate in non-accurate mode\r
     SekSetCyclesLeft(SekCyclesLeft - (len*(((488<<8)/167))>>8));\r
@@ -173,7 +174,7 @@ static void DmaSlow(int len)
       r = Pico.cram;\r
       for(a2=a&0x7f; len; len--)\r
       {\r
-        r[a2>>1] = (u16)*pd++;; // bit 0 is ignored\r
+        r[a2>>1] = (u16)*pd++; // bit 0 is ignored\r
         // AutoIncrement\r
         a2+=inc;\r
         // didn't src overlap?\r