X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fwin32%2FGenaDrive%2FEmu.cpp;h=b7a019c5206777590dbc7c45c99464e208b6989a;hb=e91e5120094a2e8e1914c591453f8d49fcd89553;hp=75f6f69842d46947fd286b6577fde3e8cfccb7bf;hpb=03a265e5ebabff7adbb4f97387f81e9b0428dbee;p=picodrive.git diff --git a/platform/win32/GenaDrive/Emu.cpp b/platform/win32/GenaDrive/Emu.cpp index 75f6f69..b7a019c 100644 --- a/platform/win32/GenaDrive/Emu.cpp +++ b/platform/win32/GenaDrive/Emu.cpp @@ -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