]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_null.c
added vid_stereobuffer cvar based on patch from syschuck on the alientrap forums
[xonotic/darkplaces.git] / vid_null.c
index 6a14679bcaf9dc239c69d5c94cb8a96378ba21d0..e70e745704632641dd016fd0559226db1bdebb82 100644 (file)
@@ -18,13 +18,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
 
 #include <signal.h>
-#include <dlfcn.h>
 #include "quakedef.h"
 
 int cl_available = false;
 
-// global video state
-viddef_t vid;
+qboolean vid_supportrefreshrate = false;
 
 void VID_Shutdown(void)
 {
@@ -32,13 +30,14 @@ void VID_Shutdown(void)
 
 void signal_handler(int sig)
 {
-       printf("Received signal %d, exiting...\n", sig);
+       Con_Printf("Received signal %d, exiting...\n", sig);
        Sys_Quit();
        exit(0);
 }
 
 void InitSig(void)
 {
+#ifndef WIN32
        signal(SIGHUP, signal_handler);
        signal(SIGINT, signal_handler);
        signal(SIGQUIT, signal_handler);
@@ -49,38 +48,33 @@ void InitSig(void)
        signal(SIGFPE, signal_handler);
        signal(SIGSEGV, signal_handler);
        signal(SIGTERM, signal_handler);
+#endif
 }
 
-void VID_GetWindowSize (int *x, int *y, int *width, int *height)
+void VID_Finish (qboolean allowmousegrab)
 {
-       *x = *y = 0;
-       *width = 1;
-       *height = 1;
 }
 
-void VID_Finish (void)
+int VID_SetGamma(unsigned short *ramps, int rampsize)
 {
+       return FALSE;
 }
 
-int VID_SetGamma(float prescale, float gamma, float scale, float base)
+int VID_GetGamma(unsigned short *ramps, int rampsize)
 {
        return FALSE;
 }
 
-void VID_Init(int fullscreen, int width, int height, int bpp)
+void VID_Init(void)
 {
        InitSig(); // trap evil signals
 }
 
-int GL_OpenLibrary(const char *name)
+int VID_InitMode(int fullscreen, int width, int height, int bpp, int refreshrate, int stereobuffer)
 {
        return false;
 }
 
-void GL_CloseLibrary(void)
-{
-}
-
 void *GL_GetProcAddress(const char *name)
 {
        return NULL;
@@ -90,18 +84,6 @@ void Sys_SendKeyEvents(void)
 {
 }
 
-void IN_Commands(void)
-{
-}
-
-void IN_Init(void)
-{
-}
-
-void IN_Shutdown(void)
-{
-}
-
-void IN_Move(usercmd_t *cmd)
+void IN_Move(void)
 {
 }