Remove S9xSetPalette

This commit is contained in:
BearOso 2020-08-06 16:26:12 -05:00
parent 793b3f623f
commit e322bbf109
9 changed files with 5 additions and 33 deletions

View File

@ -40,7 +40,6 @@ void S9xInitDisplay (int, char **);
void S9xDeinitDisplay (void);
void S9xTextMode (void);
void S9xGraphicsMode (void);
void S9xSetPalette (void);
void S9xToggleSoundChannel (int);
bool8 S9xOpenSnapshotFile (const char *, bool8, STREAM *);
void S9xCloseSnapshotFile (STREAM);

View File

@ -318,10 +318,6 @@
<p>
If your port can match Snes9x's built-in <code>SoundChannelXXX</code> command (see <code>controls.cpp</code>), you may choose to use this function. Otherwise return <code>NULL</code>. Basically, turn on/off the sound channel <code>c</code> (0-7), and turn on all channels if <code>c</code> is 8.
</p>
<h3><code>void S9xSetPalette (void)</code></h3>
<p>
Called when the SNES color palette has changed. Use this function if your system needs to change its color palette to match the SNES's. Otherwise, leave it empty.
</p>
<h3><code>void S9xSyncSpeed (void)</code></h3>
<p>
Called at the end of <code>S9xMainLoop</code> function, when emulating one frame has been done. You should adjust the frame rate in this function.

View File

@ -221,7 +221,6 @@ void S9xEndScreenRefresh (void)
{
uint32 saved = PPU.CGDATA[0];
IPPU.ColorsChanged = FALSE;
S9xSetPalette();
PPU.CGDATA[0] = saved;
}

1
gfx.h
View File

@ -216,7 +216,6 @@ bool8 S9xInitUpdate (void);
bool8 S9xDeinitUpdate (int, int);
bool8 S9xContinueUpdate (int, int);
void S9xReRefresh (void);
void S9xSetPalette (void);
void S9xSyncSpeed (void);
// called instead of S9xDisplayString if set to non-NULL

View File

@ -1498,10 +1498,6 @@ bool8 S9xInitUpdate()
return true;
}
void S9xSetPalette()
{
}
void S9xTextMode()
{
}

View File

@ -2135,7 +2135,6 @@ bool8 S9xInitUpdate() { return TRUE; }
void S9xExtraUsage() {}
bool8 S9xOpenSoundDevice() { return TRUE; }
bool S9xPollAxis(unsigned int, short*) { return FALSE; }
void S9xSetPalette() {}
void S9xParseArg(char**, int&, int) {}
void S9xExit() {}
bool S9xPollPointer(unsigned int, short*, short*) { return false; }

View File

@ -409,8 +409,3 @@ void S9xGraphicsMode (void)
{
return;
}
void S9xSetPalette (void)
{
return;
}

View File

@ -1794,8 +1794,3 @@ bool S9xDisplayPollPointer (uint32 id, int16 *x, int16 *y)
return (true);
}
void S9xSetPalette (void)
{
return;
}

View File

@ -211,12 +211,6 @@ RECT CalculateDisplayRect(unsigned int sourceWidth,unsigned int sourceHeight,
return drawRect;
}
// we no longer support 8bit modes - no palette necessary
void S9xSetPalette( void)
{
return;
}
bool8 S9xInitUpdate (void)
{
return (TRUE);