X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=vid_null.c;h=5ebb7757cbb7c7602bdda239002434e9ae7f638d;hp=20e824846cd241e0ddbbc893ec60ce0c56bee0b2;hb=8bbbfbd93eee3aaa0532de92be084d9fcb831d4e;hpb=ebc00415610a836ab75b6a49b0c6da41b644b075 diff --git a/vid_null.c b/vid_null.c index 20e82484..5ebb7757 100644 --- a/vid_null.c +++ b/vid_null.c @@ -17,24 +17,26 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include -#include #include "quakedef.h" +#include + int cl_available = false; +qbool vid_supportrefreshrate = false; + void VID_Shutdown(void) { } -void signal_handler(int sig) +#ifndef WIN32 +static void signal_handler(int sig) { - printf("Received signal %d, exiting...\n", sig); - Sys_Quit(); - exit(0); + Con_Printf("Received signal %d, exiting...\n", sig); + Sys_Quit(1); } -void InitSig(void) +static void InitSig(void) { signal(SIGHUP, signal_handler); signal(SIGINT, signal_handler); @@ -47,42 +49,28 @@ void InitSig(void) signal(SIGSEGV, signal_handler); signal(SIGTERM, signal_handler); } +#endif -void VID_GetWindowSize (int *x, int *y, int *width, int *height) +void VID_SetMouse (qbool fullscreengrab, qbool relative, qbool hidecursor) { - *x = *y = 0; - *width = 1; - *height = 1; } void VID_Finish (void) { } -int VID_SetGamma(float prescale, float gamma, float scale, float base) -{ - return FALSE; -} - void VID_Init(void) { +#ifndef WIN32 InitSig(); // trap evil signals +#endif } -int VID_InitMode(int fullscreen, int width, int height, int bpp) +qbool VID_InitMode(viddef_mode_t *mode) { return false; } -int GL_OpenLibrary(const char *name) -{ - return false; -} - -void GL_CloseLibrary(void) -{ -} - void *GL_GetProcAddress(const char *name) { return NULL; @@ -92,18 +80,25 @@ void Sys_SendKeyEvents(void) { } -void IN_Commands(void) +void VID_BuildJoyState(vid_joystate_t *joystate) { } -void IN_Init(void) +void IN_Move(void) { } -void IN_Shutdown(void) +vid_mode_t *VID_GetDesktopMode(void) { + return NULL; } -void IN_Move(usercmd_t *cmd) +size_t VID_ListModes(vid_mode_t *modes, size_t maxcount) { + return 0; +} + +qbool GL_ExtensionSupported(const char *name) +{ + return false; }