mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
sms, cleanup, add missing tms palette to gp2x
This commit is contained in:
parent
39194ef19e
commit
e5a1d4c5f1
3 changed files with 25 additions and 19 deletions
|
@ -361,12 +361,16 @@ static int make_local_pal_sms(int fast_mode)
|
|||
// SMS palette for TMS modes
|
||||
0x0000, 0x0000, 0x00a0, 0x00f0, 0x0500, 0x0f00, 0x0005, 0x0ff0,
|
||||
0x000a, 0x000f, 0x0055, 0x00ff, 0x0050, 0x0f0f, 0x0555, 0x0fff,
|
||||
// TMS palette
|
||||
0x0000, 0x0000, 0x04c2, 0x07d6, 0x0e55, 0x0f77, 0x055c, 0x0ee4,
|
||||
0x055f, 0x077f, 0x05bc, 0x08ce, 0x03a2, 0x0b5c, 0x0ccc, 0x0fff,
|
||||
};
|
||||
int i;
|
||||
|
||||
if (!(Pico.video.reg[0] & 0x4)) {
|
||||
for (i = Pico.est.SonicPalCount; i >= 0; i--) {
|
||||
bgr444_to_rgb32(localPal+i*0x40, tmspal, 32);
|
||||
int sg = !!(PicoIn.AHW & (PAHW_SG|PAHW_SC));
|
||||
bgr444_to_rgb32(localPal+i*0x40, tmspal+sg*0x10, 32);
|
||||
memcpy(localPal+i*0x40+0x20, localPal+i*0x40, 0x20*4);
|
||||
}
|
||||
} else if (fast_mode) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue