X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=vid_null.c;h=5ebb7757cbb7c7602bdda239002434e9ae7f638d;hp=6a14679bcaf9dc239c69d5c94cb8a96378ba21d0;hb=9ba01c31e0bebb3ada7724316d63a393053102d3;hpb=58fb771fc98f2d04990c947944cd199007ea1666 diff --git a/vid_null.c b/vid_null.c index 6a14679b..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, int bpp) +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; }