Fix linking issues

This commit is contained in:
Michael Martin
2019-08-25 15:14:46 -07:00
parent 4edbf36836
commit f1e29a0fda
2 changed files with 16 additions and 7 deletions
+3
View File
@@ -80,10 +80,13 @@ TFB_InitGraphics (int driver, int flags, int width, int height)
result = TFB_Pure_InitGraphics (driver, flags, width, height);
}
#if SDL_MAJOR_VERSION == 1
/* Other versions do this when setting up the window */
sprintf (caption, "The Ur-Quan Masters v%d.%d.%d%s",
UQM_MAJOR_VERSION, UQM_MINOR_VERSION,
UQM_PATCH_VERSION, UQM_EXTRA_VERSION);
SDL_WM_SetCaption (caption, NULL);
#endif
if (flags & TFB_GFXFLAGS_FULLSCREEN)
SDL_ShowCursor (SDL_DISABLE);
+7 -1
View File
@@ -98,7 +98,6 @@ sint32
mixSDL_Init (audio_Driver *driver, sint32 flags)
{
int i;
char devicename[256];
SDL_AudioSpec desired, obtained;
mixer_Quality quality;
TFB_DecoderFormats formats =
@@ -162,12 +161,19 @@ mixSDL_Init (audio_Driver *driver, sint32 flags)
return -1;
}
{
#if SDL_MAJOR_VERSION == 1
char devicename[256];
SDL_AudioDriverName (devicename, sizeof (devicename));
#else
const char *devicename = SDL_GetCurrentAudioDriver ();
#endif
log_add (log_Info, " using %s at %d Hz 16 bit %s, "
"%d samples audio buffer",
devicename, obtained.freq,
obtained.channels > 1 ? "stereo" : "mono",
obtained.samples);
}
log_add (log_Info, "Initializing mixer.");
if (!mixer_Init (obtained.freq, MIX_FORMAT_MAKE (2, obtained.channels),