hint-less mode updated for SVP, state load callback, etc
authornotaz <notasas@gmail.com>
Thu, 13 Mar 2008 22:30:34 +0000 (22:30 +0000)
committernotaz <notasas@gmail.com>
Thu, 13 Mar 2008 22:30:34 +0000 (22:30 +0000)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@384 be3aeb3a-fb24-0410-a615-afba39da0efa

gp2x/emu.c
linux/Makefile

index a658044..1fd7665 100644 (file)
@@ -291,7 +291,8 @@ static void blit(const char *fps, const char *notice)
 {\r
        int emu_opt = currentConfig.EmuOpt;\r
 \r
-       if (PicoOpt&0x10) {\r
+       if (PicoOpt&0x10)\r
+       {\r
                // 8bit fast renderer\r
                if (Pico.m.dirtyPal) {\r
                        Pico.m.dirtyPal = 0;\r
@@ -299,8 +300,14 @@ static void blit(const char *fps, const char *notice)
                        // feed new palette to our device\r
                        gp2x_video_setpalette(localPal, 0x40);\r
                }\r
+               // a hack for VR\r
+               if (PicoRead16Hook == PicoSVPRead16)\r
+                       memset32((int *)(PicoDraw2FB+328*8+328*223), 0xe0e0e0e0, 328);\r
+               // do actual copy\r
                vidCpyM2((unsigned char *)gp2x_screen+320*8, PicoDraw2FB+328*8);\r
-       } else if (!(emu_opt&0x80)) {\r
+       }\r
+       else if (!(emu_opt&0x80))\r
+       {\r
                // 8bit accurate renderer\r
                if (Pico.m.dirtyPal) {\r
                        Pico.m.dirtyPal = 0;\r
index 4957a50..19e8823 100644 (file)
@@ -96,7 +96,9 @@ PicoDrive : $(OBJS) ../common/helix/helix_mp3_x86.a
 mkdirs:
        mkdir -p $(DIRS)
 
-Pico/carthw/svp/compiler.o : Pico/carthw/svp/ssp16.o ../../Pico/carthw/svp/gen_arm.c
+Pico/carthw/svp/compiler.o : ../../Pico/carthw/svp/gen_arm.c
+
+Pico/Pico.o : ../../Pico/PicoFrameHints.c
 
 ../../cpu/musashi/m68kops.c :
        @make -C ../../cpu/musashi