X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=vid_null.c;h=5ebb7757cbb7c7602bdda239002434e9ae7f638d;hb=365e221966b15c24c6e2f4cbb6e619b0db443ebf;hp=2b4d3b029e60462869ea8bf0ceeb93025209ffcc;hpb=b82d346b06f2dbd3d4fff3ef6b7ad986739d6cf7;p=xonotic%2Fdarkplaces.git diff --git a/vid_null.c b/vid_null.c index 2b4d3b02..5ebb7757 100644 --- a/vid_null.c +++ b/vid_null.c @@ -17,27 +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; -// global video state -viddef_t vid; +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); @@ -50,37 +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(int fullscreen, int width, int height) +void VID_Init(void) { +#ifndef WIN32 InitSig(); // trap evil signals +#endif } -int GL_OpenLibrary(const char *name) +qbool VID_InitMode(viddef_mode_t *mode) { return false; } -void GL_CloseLibrary(void) -{ -} - void *GL_GetProcAddress(const char *name) { return NULL; @@ -90,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; }