mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 23:37:46 -04:00
windows Pico stuff wip
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@448 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
fa22af4caf
commit
67c81ee2e4
8 changed files with 118 additions and 27 deletions
|
@ -5,7 +5,7 @@ unsigned short *EmuScreen=NULL;
|
|||
int EmuWidth=320,EmuHeight=224;
|
||||
RECT EmuScreenRect = { 0, 0, 320, 224 };
|
||||
|
||||
static int EmuScan(unsigned int num, void *sdata);
|
||||
static int EmuScan(unsigned int num);
|
||||
unsigned char *PicoDraw2FB = NULL;
|
||||
|
||||
int EmuInit()
|
||||
|
@ -22,7 +22,7 @@ int EmuInit()
|
|||
memset(EmuScreen,0,len);
|
||||
|
||||
PicoDrawSetColorFormat(1);
|
||||
PicoScan=EmuScan;
|
||||
PicoScanBegin=EmuScan;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -38,18 +38,9 @@ void EmuExit()
|
|||
}
|
||||
|
||||
// Megadrive scanline callback:
|
||||
static int EmuScan(unsigned int num, void *sdata)
|
||||
static int EmuScan(unsigned int num)
|
||||
{
|
||||
unsigned short *pd=NULL;
|
||||
unsigned short *ps=NULL;
|
||||
|
||||
if (num>=(unsigned int)EmuHeight) return 0;
|
||||
|
||||
// Copy scanline to screen buffer:
|
||||
pd=EmuScreen+(num<<8)+(num<<6);
|
||||
ps=(unsigned short *)sdata;
|
||||
|
||||
memcpy(pd, ps, 320*2);
|
||||
DrawLineDest=EmuScreen+(num<<8)+(num<<6);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue