sdl: fix issue with dendy where scanlines were not getting set

This commit is contained in:
punkrockguy318 2015-06-27 17:10:18 +00:00
parent 52edb6e422
commit 5ecf5060ab
3 changed files with 2 additions and 33 deletions

View File

@ -856,7 +856,7 @@ void setRegion(GtkWidget* w, gpointer p)
{
int region = gtk_combo_box_get_active(GTK_COMBO_BOX(w));
g_config->setOption("SDL.PAL", region);
SetRegion(region);
FCEUI_SetRegion(region);
g_config->save();

View File

@ -185,36 +185,6 @@ static void ShowUsage(char *prog)
}
/**
* Sets the region emulation mode.
* Region 0: NTSC
* Region 1: PAL
* Region 2: Dendy
*/
void SetRegion(int region)
{
switch(region)
{
case 0:
pal_emulation = 0;
dendy = 0;
FCEUI_SetVidSystem(0);
break;
case 1:
pal_emulation = 1;
dendy = 0;
FCEUI_SetVidSystem(1);
break;
case 2:
pal_emulation = 0;
dendy = 1;
FCEUI_SetVidSystem(0);
break;
}
return;
}
/**
* Loads a game, given a full path/filename. The driver code must be
* initialized after the game is loaded, because the emulator code
@ -247,7 +217,7 @@ int LoadGame(const char *path)
// set pal/ntsc
int id;
g_config->getOption("SDL.PAL", &id);
SetRegion(id);
FCEUI_SetRegion(id);
g_config->getOption("SDL.SwapDuty", &id);
swapDuty = id;

View File

@ -24,7 +24,6 @@ extern int dendy;
extern int pal_emulation;
extern bool swapDuty;
void SetRegion(int region);
int LoadGame(const char *path);
int CloseGame(void);
void FCEUD_Update(uint8 *XBuf, int32 *Buffer, int Count);