mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
loading msgs, bugfixes
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@69 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
7336a99a49
commit
66fdc0f0d5
13 changed files with 93 additions and 49 deletions
15
Pico/Pico.c
15
Pico/Pico.c
|
@ -636,19 +636,8 @@ int PicoFrame(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int DefaultCram(int cram)
|
||||
{
|
||||
int high=0x0841;
|
||||
// Convert 0000bbbb ggggrrrr
|
||||
// to rrrr1ggg g10bbbb1
|
||||
high|=(cram&0x00f)<<12; // Red
|
||||
high|=(cram&0x0f0)<< 3; // Green
|
||||
high|=(cram&0xf00)>> 7; // Blue
|
||||
return high;
|
||||
}
|
||||
|
||||
// Function to convert Megadrive Cram into a native colour:
|
||||
int (*PicoCram)(int cram)=DefaultCram;
|
||||
// callback to output message from emu
|
||||
void (*PicoMessage)(const char *msg)=NULL;
|
||||
|
||||
#if defined(__DEBUG_PRINT) || defined(WIN32)
|
||||
// tmp debug: dump some stuff
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue