Remove unused variables
--HG-- branch : SDL-1.2
This commit is contained in:
parent
a5f570809b
commit
1e0afdb9d3
3 changed files with 4 additions and 8 deletions
|
@ -384,7 +384,7 @@ static int Mint_CheckAudio(_THIS, SDL_AudioSpec *spec)
|
||||||
|
|
||||||
static void Mint_InitAudio(_THIS, SDL_AudioSpec *spec)
|
static void Mint_InitAudio(_THIS, SDL_AudioSpec *spec)
|
||||||
{
|
{
|
||||||
int channels_mode, dmaclock, prediv;
|
int channels_mode, prediv;
|
||||||
void *buffer;
|
void *buffer;
|
||||||
|
|
||||||
/* Stop currently playing sound */
|
/* Stop currently playing sound */
|
||||||
|
@ -412,7 +412,6 @@ static void Mint_InitAudio(_THIS, SDL_AudioSpec *spec)
|
||||||
DEBUG_PRINT((DEBUG_NAME "Setmode() failed\n"));
|
DEBUG_PRINT((DEBUG_NAME "Setmode() failed\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
dmaclock = MINTAUDIO_frequencies[MINTAUDIO_numfreq].masterclock;
|
|
||||||
prediv = MINTAUDIO_frequencies[MINTAUDIO_numfreq].predivisor;
|
prediv = MINTAUDIO_frequencies[MINTAUDIO_numfreq].predivisor;
|
||||||
if (MINTAUDIO_frequencies[MINTAUDIO_numfreq].gpio_bits != -1) {
|
if (MINTAUDIO_frequencies[MINTAUDIO_numfreq].gpio_bits != -1) {
|
||||||
Gpio(GPIO_SET,7); /* DSP port gpio outputs */
|
Gpio(GPIO_SET,7); /* DSP port gpio outputs */
|
||||||
|
|
|
@ -173,14 +173,14 @@ void GEM_PumpEvents(_THIS)
|
||||||
|
|
||||||
static int do_messages(_THIS, short *message)
|
static int do_messages(_THIS, short *message)
|
||||||
{
|
{
|
||||||
int quit, posted, check_mouse_mode;
|
int quit, check_mouse_mode;
|
||||||
short x2,y2,w2,h2;
|
short x2,y2,w2,h2;
|
||||||
|
|
||||||
quit = check_mouse_mode = 0;
|
quit = check_mouse_mode = 0;
|
||||||
switch (message[0]) {
|
switch (message[0]) {
|
||||||
case WM_CLOSED:
|
case WM_CLOSED:
|
||||||
case AP_TERM:
|
case AP_TERM:
|
||||||
posted = SDL_PrivateQuit();
|
SDL_PrivateQuit();
|
||||||
quit=1;
|
quit=1;
|
||||||
break;
|
break;
|
||||||
case WM_MOVED:
|
case WM_MOVED:
|
||||||
|
|
|
@ -217,8 +217,7 @@ static void VDI_ReadExtInfo(_THIS, short *work_out)
|
||||||
{
|
{
|
||||||
unsigned long EdDI_version;
|
unsigned long EdDI_version;
|
||||||
long cookie_EdDI;
|
long cookie_EdDI;
|
||||||
Uint32 num_colours;
|
Uint16 clut_type;
|
||||||
Uint16 clut_type, num_bits;
|
|
||||||
|
|
||||||
/* Read EdDI informations */
|
/* Read EdDI informations */
|
||||||
if (Getcookie(C_EdDI, &cookie_EdDI) == C_NOTFOUND) {
|
if (Getcookie(C_EdDI, &cookie_EdDI) == C_NOTFOUND) {
|
||||||
|
@ -231,8 +230,6 @@ static void VDI_ReadExtInfo(_THIS, short *work_out)
|
||||||
|
|
||||||
VDI_format = work_out[0];
|
VDI_format = work_out[0];
|
||||||
clut_type = work_out[1];
|
clut_type = work_out[1];
|
||||||
num_bits = work_out[2];
|
|
||||||
num_colours = *((Uint32 *) &work_out[3]);
|
|
||||||
|
|
||||||
/* With EdDI>=1.1, we can have screen pitch, address and format
|
/* With EdDI>=1.1, we can have screen pitch, address and format
|
||||||
* so we can directly write to screen without using vro_cpyfm
|
* so we can directly write to screen without using vro_cpyfm
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue