mirror of https://github.com/snes9xgit/snes9x.git
Remove S9xSetPalette
This commit is contained in:
parent
793b3f623f
commit
e322bbf109
|
@ -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);
|
||||
|
|
|
@ -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.
|
||||
|
|
1
gfx.cpp
1
gfx.cpp
|
@ -221,7 +221,6 @@ void S9xEndScreenRefresh (void)
|
|||
{
|
||||
uint32 saved = PPU.CGDATA[0];
|
||||
IPPU.ColorsChanged = FALSE;
|
||||
S9xSetPalette();
|
||||
PPU.CGDATA[0] = saved;
|
||||
}
|
||||
|
||||
|
|
1
gfx.h
1
gfx.h
|
@ -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
|
||||
|
|
|
@ -1498,10 +1498,6 @@ bool8 S9xInitUpdate()
|
|||
return true;
|
||||
}
|
||||
|
||||
void S9xSetPalette()
|
||||
{
|
||||
}
|
||||
|
||||
void S9xTextMode()
|
||||
{
|
||||
}
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -409,8 +409,3 @@ void S9xGraphicsMode (void)
|
|||
{
|
||||
return;
|
||||
}
|
||||
|
||||
void S9xSetPalette (void)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1794,8 +1794,3 @@ bool S9xDisplayPollPointer (uint32 id, int16 *x, int16 *y)
|
|||
|
||||
return (true);
|
||||
}
|
||||
|
||||
void S9xSetPalette (void)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue