win32 stuff, SIMPLE_WRITE_SOUND
[picodrive.git] / platform / win32 / GenaDrive / Emu.cpp
index d93abaf..75f6f69 100644 (file)
@@ -2,7 +2,7 @@
 #include "app.h"\r
 \r
 unsigned short *EmuScreen=NULL;\r
-int EmuWidth=0,EmuHeight=0;\r
+int EmuWidth=320,EmuHeight=224;\r
 static int EmuScan(unsigned int num, void *sdata);\r
 unsigned char *PicoDraw2FB = NULL;\r
 \r
@@ -47,7 +47,7 @@ static int EmuScan(unsigned int num, void *sdata)
   pd=EmuScreen+(num<<8)+(num<<6); end=pd+320;\r
   ps=(unsigned short *)sdata;\r
 \r
-  do { *pd++=0xf800;/**ps++;*/ } while (pd<end);\r
+  do { *pd++=*ps++; } while (pd<end);\r
   \r
   return 0;\r
 }\r
@@ -66,7 +66,9 @@ int EmuFrame()
 \r
   PicoPad[0]=input;\r
 \r
-  PsndOut=(short *)DSoundNext; PicoFrame(); PsndOut=NULL;\r
+  PsndOut=(short *)DSoundNext;\r
+  PicoFrame();\r
+  //PsndOut=NULL;\r
 \r
   return 0;\r
 }\r