ifdefs weren't placed correctly

This commit is contained in:
robxnano 2022-09-07 00:03:14 +01:00
parent 177a297527
commit dae2be8c48
2 changed files with 7 additions and 3 deletions

View File

@ -379,12 +379,14 @@ static int play_startup(void *arg) {
else printf("play_startup: Audio driver failed to initialize\n");
SDL_FreeWAV(wav_buffer);
}
#endif
return 0;
}
void PlayStartupSound() {
SDL_CreateThread(play_startup, "", NULL);
}
#if SDL_VERSION_ATLEAST(2,0,0)
#else
void PlayStartupSound() {
// Not implemented
}
#endif

View File

@ -524,6 +524,8 @@ static void set_mac_frame_buffer(SDL_monitor_desc &monitor, int depth)
// Set window name and class
static void set_window_name(bool mouse_grabbed)
{
const char *title = PrefsFindString("title");
std::string s = title ? title : GetString(STR_WINDOW_TITLE);
int grabbed = 0;
if (mouse_grabbed)
{