version 1.1 | | version 1.2 |
---|
| | |
// SDL architecture support | | // SDL architecture support |
#include <stdlib.h> | | #include <stdlib.h> |
#include <stdio.h> | | #include <stdio.h> |
#include "SDL.h" | | #include <SDL/SDL.h> |
#include "text.h" | | #include "text.h" |
#include "event.h" | | #include "event.h" |
#include "error.h" | | #include "error.h" |
#include "args.h" | | #include "args.h" |
| | |
| | extern void d_mouse_init(); |
| | |
void sdl_close() | | void sdl_close() |
{ | | { |
SDL_Quit(); | | SDL_Quit(); |
| | |
//end edit -MM | | //end edit -MM |
Error("SDL library initialisation failed: %s.",SDL_GetError()); | | Error("SDL library initialisation failed: %s.",SDL_GetError()); |
} | | } |
| | #ifdef SDL_INPUT |
| | if (!FindArg("-nomouse")) |
| | d_mouse_init(); |
| | #endif |
atexit(sdl_close); | | atexit(sdl_close); |
} | | } |