Unverified Commit ef4fa1dd authored by Libretro-Admin's avatar Libretro-Admin Committed by GitHub
Browse files

Merge pull request #49 from jSTE0/gfx-unused

gfx: Remove unused settings and code
parents 218d7aea 14cb0bef
Pipeline #93197 passed with stages
in 10 minutes and 11 seconds
......@@ -763,7 +763,7 @@ unsigned retro_get_region (void)
return Settings.PAL ? RETRO_REGION_PAL : RETRO_REGION_NTSC;
}
bool8 S9xDeinitUpdate(int width, int height, bool8 sixteen_bit)
bool8 S9xDeinitUpdate(int width, int height)
{
int y;
......@@ -803,7 +803,6 @@ bool8 S9xDeinitUpdate(int width, int height, bool8 sixteen_bit)
/* Dummy functions that should probably be implemented correctly later. */
bool8 S9xInitUpdate(void) { return TRUE; }
bool8 S9xContinueUpdate(int width, int height) { return TRUE; }
void S9xSetPalette(void) {}
void S9xLoadSDD1Data(void) {}
......
......@@ -561,11 +561,6 @@ void S9xStartScreenRefresh()
{
if (IPPU.RenderThisFrame)
{
if (!S9xInitUpdate())
{
IPPU.RenderThisFrame = FALSE;
return;
}
IPPU.RenderedFramesCount++;
IPPU.PreviousLine = IPPU.CurrentLine = 0;
IPPU.MaxBrightness = PPU.Brightness;
......@@ -641,8 +636,7 @@ void S9xEndScreenRefresh()
IPPU.ColorsChanged = FALSE;
S9xDeinitUpdate(IPPU.RenderedScreenWidth, IPPU.RenderedScreenHeight,
1);
S9xDeinitUpdate(IPPU.RenderedScreenWidth, IPPU.RenderedScreenHeight);
}
#ifdef LAGFIX
......
......@@ -313,8 +313,7 @@ extern SGFX GFX;
bool8_32 S9xGraphicsInit();
void S9xGraphicsDeinit();
bool8_32 S9xInitUpdate(void);
bool8_32 S9xDeinitUpdate(int Width, int Height, bool8_32 sixteen_bit);
bool8_32 S9xDeinitUpdate(int Width, int Height);
void S9xSetPalette();
void S9xSyncSpeed();
......
......@@ -574,11 +574,6 @@ void S9xStartScreenRefresh()
if (IPPU.RenderThisFrame)
{
if (!S9xInitUpdate())
{
IPPU.RenderThisFrame = FALSE;
return;
}
IPPU.RenderedFramesCount++;
IPPU.PreviousLine = IPPU.CurrentLine = 0;
IPPU.MaxBrightness = PPU.Brightness;
......@@ -661,8 +656,7 @@ void S9xEndScreenRefresh()
IPPU.ColorsChanged = FALSE;
//}
S9xDeinitUpdate(IPPU.RenderedScreenWidth, IPPU.RenderedScreenHeight,
1);
S9xDeinitUpdate(IPPU.RenderedScreenWidth, IPPU.RenderedScreenHeight);
}
#ifdef LAGFIX
......
......@@ -122,7 +122,6 @@ void S9xUpdateHTimer()
void S9xFixColourBrightness()
{
IPPU.XB = mul_brightness [PPU.Brightness];
if (Settings.SixteenBit)
{
unsigned int i;
for (i = 0; i < 256; i++)
......
......@@ -120,7 +120,6 @@ void S9xUpdateHTimer(void)
void S9xFixColourBrightness(void)
{
IPPU.XB = mul_brightness [PPU.Brightness];
if (Settings.SixteenBit)
{
unsigned i;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment