a workaround for not being able to set and save the ntsc scanline rendering options (which were defaulting to 8->231): change the ntsc scanline rendering to match pal, 0->239. suboptimal but simple and effective.

This commit is contained in:
zeromus 2008-05-07 05:55:57 +00:00
parent 491a8950f7
commit 3cd4b22cc6
3 changed files with 12 additions and 5 deletions

View File

@ -59,8 +59,12 @@ static int soundbuftime = 50;
static int soundvolume = 100;
static int soundquality = 0;
static uint8 cpalette[192];
static int srendlinen = 8;
static int erendlinen = 231;
//mbg 5/7/08 - I changed the ntsc settings to match pal.
//this is more for precision emulation, instead of entertainment, which is what fceux is all about nowadays
//static int srendlinen = 8;
//static int erendlinen = 231;
static int srendlinen = 0;
static int erendlinen = 239;
static int srendlinep = 0;
static int erendlinep = 239;

View File

@ -457,7 +457,6 @@ static void BlitScreenWindow(unsigned char *XBuf)
specialmul = 3;
else specialmul = 1;
srect.top=srect.left=0;
srect.right=VNSWID * specialmul;
srect.bottom=totallines * specialmul;

View File

@ -379,10 +379,14 @@ int FCEUI_Initialize(void)
AllocBuffers();
// Initialize some parts of the settings structure
//mbg 5/7/08 - I changed the ntsc settings to match pal.
//this is more for precision emulation, instead of entertainment, which is what fceux is all about nowadays
memset(&FSettings,0,sizeof(FSettings));
FSettings.UsrFirstSLine[0]=8;
//FSettings.UsrFirstSLine[0]=8;
FSettings.UsrFirstSLine[0]=0;
FSettings.UsrFirstSLine[1]=0;
FSettings.UsrLastSLine[0]=231;
//FSettings.UsrLastSLine[0]=231;
FSettings.UsrLastSLine[0]=239;
FSettings.UsrLastSLine[1]=239;
FSettings.SoundVolume=100;