]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
VID_CompareMode removed
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 23 Sep 2002 05:56:04 +0000 (05:56 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 23 Sep 2002 05:56:04 +0000 (05:56 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2422 d7cf8633-e32d-0410-b094-e92efae38249

vid.h
vid_shared.c

diff --git a/vid.h b/vid.h
index 708514ec534c6c21b7df61bad0e065875421a1f7..6c23c88b1490b9d2210238eccccc36a56c88134d 100644 (file)
--- a/vid.h
+++ b/vid.h
@@ -94,8 +94,6 @@ void GL_CloseLibrary(void);
 void *GL_GetProcAddress(const char *name);
 int GL_CheckExtension(const char *name, const gl_extensionfunctionlist_t *funcs, const char *disableparm, int silent);
 
-double VID_CompareMode(int width1, int height1, int bpp1, int width2, int height2, int bpp2);
-
 void VID_InitCvars(void);
 
 void GL_Init (void);
index 561e0d8d274ad24e669ad16f8f9fd7184f7609cb..2fbd3df03aa020c2bb4ff73e4dcd1c78c380fbea 100644 (file)
@@ -333,15 +333,6 @@ void VID_CheckExtensions(void)
                qglDrawRangeElements = qglDrawRangeElementsEXT;
 }
 
-double VID_CompareMode(int width1, int height1, int bpp1, int width2, int height2, int bpp2)
-{
-       double dw, dh, db;
-       dw = ((width2 - width1) / 2048) * 16;
-       dh = ((height2 - height1) / 1536) * 4;
-       db = (bpp2 - bpp1) / 32;
-       return dw * dw + dh * dh + db * db;
-}
-
 void Force_CenterView_f (void)
 {
        cl.viewangles[PITCH] = 0;