]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_null.c
Fix setinfo.
[xonotic/darkplaces.git] / vid_null.c
index 9accd0a6da7fc04ab6af45692746541f061efed1..aa40994604538e5fdd6ab9d04e9878f75c70bac9 100644 (file)
@@ -17,9 +17,10 @@ along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
 
-#include <signal.h>
 #include "quakedef.h"
 
+#include <signal.h>
+
 int cl_available = false;
 
 qboolean vid_supportrefreshrate = false;
@@ -28,14 +29,13 @@ 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);
@@ -51,18 +51,12 @@ void InitSig(void)
 #endif
 }
 
-void VID_Finish (qboolean allowmousegrab)
-{
-}
-
-int VID_SetGamma(unsigned short *ramps, int rampsize)
+void VID_SetMouse (qboolean fullscreengrab, qboolean relative, qboolean hidecursor)
 {
-       return FALSE;
 }
 
-int VID_GetGamma(unsigned short *ramps, int rampsize)
+void VID_Finish (void)
 {
-       return FALSE;
 }
 
 void VID_Init(void)
@@ -70,7 +64,7 @@ void VID_Init(void)
        InitSig(); // trap evil signals
 }
 
-int VID_InitMode(int fullscreen, int width, int height, int bpp, int refreshrate)
+qboolean VID_InitMode(viddef_mode_t *mode)
 {
        return false;
 }
@@ -84,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;
+}
+
+qboolean GL_ExtensionSupported(const char *name)
+{
+       return false;
+}