mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-03-13 03:33:28 +00:00
Couple of #ifndef WIN32 to get SDL compile under Borland.
This commit is contained in:
parent
6a008a83c9
commit
2a3cfd6251
1 changed files with 6 additions and 3 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue