mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-02-17 06:31:14 +00:00
ifdefs weren't placed correctly
This commit is contained in:
parent
177a297527
commit
dae2be8c48
@ -379,12 +379,14 @@ static int play_startup(void *arg) {
|
|||||||
else printf("play_startup: Audio driver failed to initialize\n");
|
else printf("play_startup: Audio driver failed to initialize\n");
|
||||||
SDL_FreeWAV(wav_buffer);
|
SDL_FreeWAV(wav_buffer);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlayStartupSound() {
|
void PlayStartupSound() {
|
||||||
SDL_CreateThread(play_startup, "", NULL);
|
SDL_CreateThread(play_startup, "", NULL);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
#if SDL_VERSION_ATLEAST(2,0,0)
|
void PlayStartupSound() {
|
||||||
|
// Not implemented
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
@ -524,6 +524,8 @@ static void set_mac_frame_buffer(SDL_monitor_desc &monitor, int depth)
|
|||||||
// Set window name and class
|
// Set window name and class
|
||||||
static void set_window_name(bool mouse_grabbed)
|
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;
|
int grabbed = 0;
|
||||||
if (mouse_grabbed)
|
if (mouse_grabbed)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user