equal
deleted
inserted
replaced
9 #include "player.h" |
9 #include "player.h" |
10 #include "hal.h" |
10 #include "hal.h" |
11 |
11 |
12 #ifdef UNIX |
12 #ifdef UNIX |
13 #include <signal.h> |
13 #include <signal.h> |
|
14 |
|
15 #ifdef __MORPHOS__ |
|
16 #define SIG_DFL (void (*)(int))0 |
|
17 #endif |
14 #endif |
18 #endif |
15 |
19 |
16 #define DYNAMICALLY_LOADED_SDL |
20 #define DYNAMICALLY_LOADED_SDL |
17 |
21 |
18 static SDL_Surface *_sdl_screen; |
22 static SDL_Surface *_sdl_screen; |
147 if (x != 0) |
151 if (x != 0) |
148 SDL_CALL SDL_QuitSubSystem(x); |
152 SDL_CALL SDL_QuitSubSystem(x); |
149 if (--_sdl_usage == 0) { |
153 if (--_sdl_usage == 0) { |
150 SDL_CALL SDL_Quit(); |
154 SDL_CALL SDL_Quit(); |
151 #ifdef UNIX |
155 #ifdef UNIX |
152 #ifndef __MORPHOS__ |
156 signal(SIGABRT, SIG_DFL); |
153 signal(SIGABRT, SIG_DFL); |
|
154 #else |
|
155 signal(SIGABRT, (void (*)(int))0); |
|
156 #endif |
|
157 #endif |
157 #endif |
158 } |
158 } |
159 } |
159 } |
160 |
160 |
161 static void SdlVideoMakeDirty(int left, int top, int width, int height) |
161 static void SdlVideoMakeDirty(int left, int top, int width, int height) |