sdl: fix issue with dendy where scanlines were not getting set
This commit is contained in:
parent
52edb6e422
commit
5ecf5060ab
|
@ -856,7 +856,7 @@ void setRegion(GtkWidget* w, gpointer p)
|
||||||
{
|
{
|
||||||
int region = gtk_combo_box_get_active(GTK_COMBO_BOX(w));
|
int region = gtk_combo_box_get_active(GTK_COMBO_BOX(w));
|
||||||
g_config->setOption("SDL.PAL", region);
|
g_config->setOption("SDL.PAL", region);
|
||||||
SetRegion(region);
|
FCEUI_SetRegion(region);
|
||||||
|
|
||||||
g_config->save();
|
g_config->save();
|
||||||
|
|
||||||
|
|
|
@ -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
|
* Loads a game, given a full path/filename. The driver code must be
|
||||||
* initialized after the game is loaded, because the emulator code
|
* initialized after the game is loaded, because the emulator code
|
||||||
|
@ -247,7 +217,7 @@ int LoadGame(const char *path)
|
||||||
// set pal/ntsc
|
// set pal/ntsc
|
||||||
int id;
|
int id;
|
||||||
g_config->getOption("SDL.PAL", &id);
|
g_config->getOption("SDL.PAL", &id);
|
||||||
SetRegion(id);
|
FCEUI_SetRegion(id);
|
||||||
|
|
||||||
g_config->getOption("SDL.SwapDuty", &id);
|
g_config->getOption("SDL.SwapDuty", &id);
|
||||||
swapDuty = id;
|
swapDuty = id;
|
||||||
|
|
|
@ -24,7 +24,6 @@ extern int dendy;
|
||||||
extern int pal_emulation;
|
extern int pal_emulation;
|
||||||
extern bool swapDuty;
|
extern bool swapDuty;
|
||||||
|
|
||||||
void SetRegion(int region);
|
|
||||||
int LoadGame(const char *path);
|
int LoadGame(const char *path);
|
||||||
int CloseGame(void);
|
int CloseGame(void);
|
||||||
void FCEUD_Update(uint8 *XBuf, int32 *Buffer, int Count);
|
void FCEUD_Update(uint8 *XBuf, int32 *Buffer, int Count);
|
||||||
|
|
Loading…
Reference in New Issue