* Add Sys_GLimpInit for platform specific GLimp initialisation

* Move Unix specific signal handlers to Sys_PlatformInit
* (Windows only) Don't set the SDL video driver if SDL_VIDEODRIVER is already
  set externally
* (Windows only) Use the "windib" SDL video driver if in_mouse is set to -1
This commit is contained in:
Tim Angus 2008-08-08 21:35:33 +00:00
parent 2cf5052786
commit d4d5527a89
5 changed files with 67 additions and 16 deletions

View file

@ -24,6 +24,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "../qcommon/qcommon.h"
#include "sys_local.h"
#include <signal.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
@ -512,6 +513,18 @@ void Sys_ErrorDialog( const char *error )
FS_FCloseFile( f );
}
/*
==============
Sys_GLimpInit
Unix specific GL implementation initialisation
==============
*/
void Sys_GLimpInit( void )
{
// NOP
}
/*
==============
Sys_PlatformInit
@ -521,5 +534,9 @@ Unix specific initialisation
*/
void Sys_PlatformInit( void )
{
// NOP
signal( SIGHUP, Sys_SigHandler );
signal( SIGQUIT, Sys_SigHandler );
signal( SIGTRAP, Sys_SigHandler );
signal( SIGIOT, Sys_SigHandler );
signal( SIGBUS, Sys_SigHandler );
}