X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fgp2x%2Femu.c;h=1fd76657e999aed617256bd9a041933ea322de06;hb=fad248933b6676d30ccf419858b4ee10cc123fc5;hp=a658044daa3a33985c9fec5db530b39d942faa79;hpb=71bb1b7bd0186eb056609fec62a134dcaadbffdf;p=picodrive.git diff --git a/platform/gp2x/emu.c b/platform/gp2x/emu.c index a658044..1fd7665 100644 --- a/platform/gp2x/emu.c +++ b/platform/gp2x/emu.c @@ -291,7 +291,8 @@ static void blit(const char *fps, const char *notice) { int emu_opt = currentConfig.EmuOpt; - if (PicoOpt&0x10) { + if (PicoOpt&0x10) + { // 8bit fast renderer if (Pico.m.dirtyPal) { Pico.m.dirtyPal = 0; @@ -299,8 +300,14 @@ static void blit(const char *fps, const char *notice) // feed new palette to our device gp2x_video_setpalette(localPal, 0x40); } + // a hack for VR + if (PicoRead16Hook == PicoSVPRead16) + memset32((int *)(PicoDraw2FB+328*8+328*223), 0xe0e0e0e0, 328); + // do actual copy vidCpyM2((unsigned char *)gp2x_screen+320*8, PicoDraw2FB+328*8); - } else if (!(emu_opt&0x80)) { + } + else if (!(emu_opt&0x80)) + { // 8bit accurate renderer if (Pico.m.dirtyPal) { Pico.m.dirtyPal = 0;