From: havoc Date: Mon, 23 Sep 2002 05:56:04 +0000 (+0000) Subject: VID_CompareMode removed X-Git-Tag: RELEASE_0_2_0_RC1~212 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d24632efa31e94894183a591ff821c75a02dc7b7;p=xonotic%2Fdarkplaces.git VID_CompareMode removed git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2422 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid.h b/vid.h index 708514ec..6c23c88b 100644 --- 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); diff --git a/vid_shared.c b/vid_shared.c index 561e0d8d..2fbd3df0 100644 --- a/vid_shared.c +++ b/vid_shared.c @@ -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;