mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 23:37:46 -04:00
lots of win32 port work
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@343 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
e0978fa87d
commit
1b0ac8adc9
20 changed files with 307 additions and 2870 deletions
|
@ -3,6 +3,8 @@
|
|||
|
||||
unsigned short *EmuScreen=NULL;
|
||||
int EmuWidth=320,EmuHeight=224;
|
||||
RECT EmuScreenRect = { 0, 0, 320, 224 };
|
||||
|
||||
static int EmuScan(unsigned int num, void *sdata);
|
||||
unsigned char *PicoDraw2FB = NULL;
|
||||
|
||||
|
@ -38,16 +40,16 @@ void EmuExit()
|
|||
// Megadrive scanline callback:
|
||||
static int EmuScan(unsigned int num, void *sdata)
|
||||
{
|
||||
unsigned short *pd=NULL,*end=NULL;
|
||||
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); end=pd+320;
|
||||
pd=EmuScreen+(num<<8)+(num<<6);
|
||||
ps=(unsigned short *)sdata;
|
||||
|
||||
do { *pd++=*ps++; } while (pd<end);
|
||||
memcpy(pd, ps, 320*2);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -68,7 +70,7 @@ int EmuFrame()
|
|||
|
||||
PsndOut=(short *)DSoundNext;
|
||||
PicoFrame();
|
||||
//PsndOut=NULL;
|
||||
PsndOut=NULL;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue