X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FPicoFrameHints.c;h=7a372bf773c272be188d4c0dc20e68a655cb4c56;hb=b06778874d140bd5187cb74444ddc40931b9bd1d;hp=9fecc0cd06fff5c0a9bf1c97b3a5ac8d7be7d4bd;hpb=9761a7d0d41ad429d53c64ff35fe061c38092dbf;p=picodrive.git diff --git a/Pico/PicoFrameHints.c b/Pico/PicoFrameHints.c index 9fecc0c..7a372bf 100644 --- a/Pico/PicoFrameHints.c +++ b/Pico/PicoFrameHints.c @@ -139,15 +139,10 @@ static int PicoFrameHints(void) #ifdef PICO_CD update_chips(); #else - if (PicoLineHook) PicoLineHook(1); + if (PicoLineHook) PicoLineHook(); #endif } - // V-int line (224 or 240) - Pico.m.scanline = y; - pv->v_counter = 0xe0; // bad for 240 mode - if ((pv->reg[12]&6) == 6) pv->v_counter = 0xc1; - if (!skip) { if (DrawScanline < y) @@ -157,6 +152,11 @@ static int PicoFrameHints(void) #endif } + // V-int line (224 or 240) + Pico.m.scanline = y; + pv->v_counter = 0xe0; // bad for 240 mode + if ((pv->reg[12]&6) == 6) pv->v_counter = 0xc1; + // VDP FIFO pv->lwrite_cnt=0; Pico.video.status|=0x200; @@ -213,7 +213,7 @@ static int PicoFrameHints(void) #ifdef PICO_CD update_chips(); #else - if (PicoLineHook) PicoLineHook(1); + if (PicoLineHook) PicoLineHook(); #endif // PAL line count might actually be 313 according to Steve Snake, but that would complicate things. @@ -241,7 +241,7 @@ static int PicoFrameHints(void) #ifdef PICO_CD update_chips(); #else - if (PicoLineHook) PicoLineHook(1); + if (PicoLineHook) PicoLineHook(); #endif }