mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-12 16:30:44 +00:00
Merge pull request #23 from vasi/linux-true
Work even if TRUE is undefined
This commit is contained in:
commit
e4159d5c89
@ -681,10 +681,10 @@ static bool init_sdl()
|
|||||||
|
|
||||||
#ifdef USE_SDL_VIDEO
|
#ifdef USE_SDL_VIDEO
|
||||||
// Don't let SDL block the screensaver
|
// Don't let SDL block the screensaver
|
||||||
setenv("SDL_VIDEO_ALLOW_SCREENSAVER", "1", TRUE);
|
setenv("SDL_VIDEO_ALLOW_SCREENSAVER", "1", true);
|
||||||
|
|
||||||
// Make SDL pass through command-clicks and option-clicks unaltered
|
// Make SDL pass through command-clicks and option-clicks unaltered
|
||||||
setenv("SDL_HAS3BUTTONMOUSE", "1", TRUE);
|
setenv("SDL_HAS3BUTTONMOUSE", "1", true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (SDL_Init(sdl_flags) == -1) {
|
if (SDL_Init(sdl_flags) == -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user