X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pandora%2Femu.c;h=af3474a6e623afc092a909575cfe4f3f7124fa3d;hb=7ee5c389e6405560761ba433cd4b9d56c495b7f6;hp=a9a21193a7dbd1ea030682c6c6cd7bf2d638d6a5;hpb=b5bfb86438216d502f1f9ed14b923d3b0107c07d;p=libpicofe.git diff --git a/pandora/emu.c b/pandora/emu.c index a9a2119..af3474a 100644 --- a/pandora/emu.c +++ b/pandora/emu.c @@ -186,7 +186,6 @@ static void draw_pico_ptr(void) static int EmuScanBegin16(unsigned int num) { - if (!(Pico.video.reg[1]&8)) num += 8; DrawLineDest = (unsigned short *)g_screen_ptr + num*800 + 800/2 - 320/2; //int w = (Pico.video.reg[12]&1) ? 320 : 256; //DrawLineDest = (unsigned short *)g_screen_ptr + num*w; @@ -204,7 +203,6 @@ static int EmuScanEnd16(unsigned int num) int sh = Pico.video.reg[0xC]&8; int len, mask = 0xff; - if (!(Pico.video.reg[1]&8)) num += 8; pd=(unsigned short *)g_screen_ptr + num*800*2 + 800/2 - 320*2/2; if (Pico.m.dirtyPal) @@ -255,7 +253,7 @@ static void blit(const char *fps, const char *notice) // gp2x_video_setpalette(localPal, 0x40); } // a hack for VR - if (PicoRead16Hook == PicoSVPRead16) + if (PicoAHW & PAHW_SVP) memset32((int *)(PicoDraw2FB+328*8+328*223), 0xe0e0e0e0, 328); // do actual copy vidCpyM2((unsigned char *)g_screen_ptr+g_screen_width*8, PicoDraw2FB+328*8);