notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
idle loop hack, psp bugfix, plat debug str
[picodrive.git]
/
platform
/
psp
/
emu.c
diff --git
a/platform/psp/emu.c
b/platform/psp/emu.c
index
11b5e3f
..
b050419
100644
(file)
--- a/
platform/psp/emu.c
+++ b/
platform/psp/emu.c
@@
-274,7
+274,7
@@
static void do_pal_update(int allow_sh, int allow_as)
}
else if (allow_as && (rendstatus & PDRAW_ACC_SPRITES))
{
}
else if (allow_as && (rendstatus & PDRAW_ACC_SPRITES))
{
- memcpy32((int *)
(void *)(localPal+0x80), (void *)localPal, 0x40/2
);
+ memcpy32((int *)
dpal+0x80/2, (void *)localPal, 0x40*2/4
);
}
}
}
}
@@
-296,6
+296,7
@@
static void EmuScanPrepare(void)
if (dynamic_palette > 0)
dynamic_palette--;
if (dynamic_palette > 0)
dynamic_palette--;
+
if (Pico.m.dirtyPal)
do_pal_update(1, 1);
if ((rendstatus & PDRAW_ACC_SPRITES) && !(Pico.video.reg[0xC]&8))
if (Pico.m.dirtyPal)
do_pal_update(1, 1);
if ((rendstatus & PDRAW_ACC_SPRITES) && !(Pico.video.reg[0xC]&8))
@@
-322,7
+323,7
@@
static int EmuScanSlowEnd(unsigned int num)
do_slowmode_lines(num);
dynamic_palette = 3; // last for 2 more frames
}
do_slowmode_lines(num);
dynamic_palette = 3; // last for 2 more frames
}
- do_pal_update(1,
0
);
+ do_pal_update(1,
1
);
}
if (dynamic_palette) {
}
if (dynamic_palette) {
@@
-534,6
+535,11
@@
static void vidResetMode(void)
sceGuSync(0,0);
}
sceGuSync(0,0);
}
+void emu_platformDebugCat(char *str)
+{
+ strcat(str, blit_16bit_mode ? "soft clut\n" : "hard clut\n");
+}
+
/* sound stuff */
#define SOUND_BLOCK_SIZE_NTSC (1470*2) // 1024 // 1152
/* sound stuff */
#define SOUND_BLOCK_SIZE_NTSC (1470*2) // 1024 // 1152