X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Finclude%2FSDLptc.h;h=c7f366b49d4e37c6285bdaae189e688d81294d19;hb=fa566a2c8ec532eb5325b4d5a663fb2a7d72adc6;hp=163421bcab6243570665e6d9a865a768ae580dda;hpb=86bd0f2592c3cd674239532247276bd2d579a857;p=virtualjaguar diff --git a/src/include/SDLptc.h b/src/include/SDLptc.h index 163421b..c7f366b 100644 --- a/src/include/SDLptc.h +++ b/src/include/SDLptc.h @@ -10,17 +10,10 @@ #define __SDLPTC_H__ #include "SDL.h" -#ifdef __PORT__ #include #include -#endif // #ifdef __PORT__ - #include "types.h" -#ifndef __PORT__ -#define randomize() srand(time(NULL)) -#define random(max) (rand() % (max)) -#endif // #ifndef __PORT__ class Error { @@ -199,7 +192,8 @@ class Console: public Surface { Uint32 flags = SDL_SWSURFACE; - if (SDL_Init(SDL_INIT_VIDEO|SDL_INIT_JOYSTICK | SDL_INIT_AUDIO | SDL_INIT_TIMER) < 0) +//Testing if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_AUDIO | SDL_INIT_TIMER) < 0) + if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_AUDIO | SDL_INIT_TIMER | SDL_INIT_NOPARACHUTE) < 0) throw Error(SDL_GetError()); const SDL_VideoInfo * info = SDL_GetVideoInfo(); // Let us get proper info about the platform. @@ -255,4 +249,4 @@ class Console: public Surface int nJoystick; }; -#endif // #ifndef __SDLPTC_H__ +#endif // __SDLPTC_H__