mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 06:47:45 -04:00
menu bg, pc linux build
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@34 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
4dfd9f4230
commit
e5d315a585
6 changed files with 141 additions and 48 deletions
11
gp2x/emu.c
11
gp2x/emu.c
|
@ -634,7 +634,7 @@ static int EmuScan8(unsigned int num, void *sdata)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int localPal[0x100];
|
||||
int localPal[0x100];
|
||||
static void (*vidCpyM2)(void *dest, void *src) = NULL;
|
||||
|
||||
static void blit(char *fps, char *notice)
|
||||
|
@ -1001,6 +1001,7 @@ void emu_Loop(void)
|
|||
|
||||
// make sure we are in correct mode
|
||||
vidResetMode();
|
||||
Pico.m.dirtyPal = 1;
|
||||
oldmodes = ((Pico.video.reg[12]&1)<<2) ^ 0xc;
|
||||
find_combos();
|
||||
|
||||
|
@ -1227,6 +1228,14 @@ if (Pico.m.frame_count == 31563) {
|
|||
emu_SaveLoadGame(0, 1);
|
||||
SRam.changed = 0;
|
||||
}
|
||||
|
||||
// if in 16bit mode, generate 8it image for menu background
|
||||
if (!(PicoOpt&0x10) && (currentConfig.EmuOpt&0x80)) {
|
||||
PicoOpt |= 0x10;
|
||||
PicoFrameFull();
|
||||
blit("", NULL); blit("", NULL); blit("", NULL); blit("", NULL); // be sure buffer3 gets updated
|
||||
PicoOpt &= ~0x10;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue