]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_null.c
vid_null: Fix compiler warning on Windows build
[xonotic/darkplaces.git] / vid_null.c
index 5505ea67910d511d4cd6fcfc2976e3594096b620..5ebb7757cbb7c7602bdda239002434e9ae7f638d 100644 (file)
@@ -17,24 +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 <signal.h>
-#include <dlfcn.h>
 #include "quakedef.h"
 
+#include <signal.h>
+
 int cl_available = false;
 
+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);
@@ -47,55 +49,56 @@ 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(void)
 {
+#ifndef WIN32
        InitSig(); // trap evil signals
+#endif
 }
 
-int VID_InitMode(int fullscreen, int width, int height, int bpp)
+qbool VID_InitMode(viddef_mode_t *mode)
 {
        return false;
 }
 
-int GL_OpenLibrary(const char *name)
+void *GL_GetProcAddress(const char *name)
 {
-       return false;
+       return NULL;
 }
 
-void GL_CloseLibrary(void)
+void Sys_SendKeyEvents(void)
 {
 }
 
-void *GL_GetProcAddress(const char *name)
+void VID_BuildJoyState(vid_joystate_t *joystate)
 {
-       return NULL;
 }
 
-void Sys_SendKeyEvents(void)
+void IN_Move(void)
 {
 }
 
-void IN_Commands(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;
 }