X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=vid_null.c;h=cf2ba8649865ce1d182ae0256c0414335bf136ba;hp=a4c2f46b32d2e92a0c7a1f798fac0d341a0d4e44;hb=fe6c374412a5d42d5cd84945d8101c4a398e96d5;hpb=df8727697622029dd7a03047999ffc19b49e44ea diff --git a/vid_null.c b/vid_null.c index a4c2f46b..cf2ba864 100644 --- a/vid_null.c +++ b/vid_null.c @@ -17,23 +17,25 @@ 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 "quakedef.h" +#include + int cl_available = false; +qbool vid_supportrefreshrate = false; + void VID_Shutdown(void) { } -void signal_handler(int sig) +static void signal_handler(int sig) { Con_Printf("Received signal %d, exiting...\n", sig); - Sys_Quit(); - exit(0); + Sys_Quit(1); } -void InitSig(void) +static void InitSig(void) { #ifndef WIN32 signal(SIGHUP, signal_handler); @@ -49,33 +51,20 @@ void InitSig(void) #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(unsigned short *ramps) -{ - return FALSE; -} - -int VID_GetGamma(unsigned short *ramps) -{ - return FALSE; -} - void VID_Init(void) { InitSig(); // trap evil signals } -int VID_InitMode(int fullscreen, int width, int height, int bpp) +qbool VID_InitMode(viddef_mode_t *mode) { return false; } @@ -89,6 +78,25 @@ void Sys_SendKeyEvents(void) { } +void VID_BuildJoyState(vid_joystate_t *joystate) +{ +} + void IN_Move(void) { } + +vid_mode_t *VID_GetDesktopMode(void) +{ + return NULL; +} + +size_t VID_ListModes(vid_mode_t *modes, size_t maxcount) +{ + return 0; +} + +qbool GL_ExtensionSupported(const char *name) +{ + return false; +}