From 2a3cfd62516407573951d7e2c2e9a746b8609d48 Mon Sep 17 00:00:00 2001 From: Dabb Date: Tue, 11 Jul 2000 14:42:05 +0000 Subject: [PATCH] Couple of #ifndef WIN32 to get SDL compile under Borland. --- source/vid_sgl.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/vid_sgl.c b/source/vid_sgl.c index c80ff2c..67d3538 100644 --- a/source/vid_sgl.c +++ b/source/vid_sgl.c @@ -107,7 +107,7 @@ void VID_Shutdown (void) SDL_Quit(); } - +#ifndef WIN32 static void signal_handler(int sig) { @@ -130,7 +130,7 @@ InitSig(void) signal(SIGSEGV, signal_handler); signal(SIGTERM, signal_handler); } - +#endif void VID_SetPalette (unsigned char *palette) { byte *pal; @@ -363,9 +363,11 @@ void VID_Init (unsigned char *palette) { flags |= SDL_FULLSCREEN; // Don't annoy Mesa/3dfx folks +#ifndef WIN32 setenv ("MESA_GLX_FX","fullscreen", 1); } else { setenv ("MESA_GLX_FX","disable",1); +#endif } // Setup GL Attributes @@ -393,8 +395,9 @@ void VID_Init (unsigned char *palette) vid.aspect = ((float)vid.height / (float)vid.width) * (320.0 / 240.0); vid.numpages = 2; - +#ifndef WIN32 InitSig(); // trap evil signals +#endif GL_Init();