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=79938b2ca5551fd4c21327ec2994e42786c22c48;hpb=7c9e6899a2c3fd0dfeafa1c6cda1593741d635d4;p=picodrive.git diff --git a/platform/win32/GenaDrive/Emu.cpp b/platform/win32/GenaDrive/Emu.cpp index 79938b2..b7a019c 100644 --- a/platform/win32/GenaDrive/Emu.cpp +++ b/platform/win32/GenaDrive/Emu.cpp @@ -2,7 +2,9 @@ #include "app.h" unsigned short *EmuScreen=NULL; -int EmuWidth=0,EmuHeight=0; +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