Wh17e5p@c3!

This commit is contained in:
Ragnvald Maartmann-Moe IV 2002-10-10 19:44:27 +00:00
parent 0d28f4d63a
commit b025a4e9aa

View file

@ -55,7 +55,6 @@ D_SurfaceCacheAddress (void)
return sc_base;
}
int
D_SurfaceCacheForRes (int width, int height)
{
@ -72,11 +71,9 @@ D_SurfaceCacheForRes (int width, int height)
if (pix > 64000)
size += (pix - 64000) * 3;
return size;
}
void
D_CheckCacheGuard (void)
{
@ -89,7 +86,6 @@ D_CheckCacheGuard (void)
Sys_Error ("D_CheckCacheGuard: failed");
}
void
D_ClearCacheGuard (void)
{
@ -101,7 +97,6 @@ D_ClearCacheGuard (void)
s[i] = (byte) i;
}
void
D_InitCaches (void *buffer, int size)
{
@ -120,7 +115,6 @@ D_InitCaches (void *buffer, int size)
D_ClearCacheGuard ();
}
void
D_FlushCaches (void)
{
@ -140,7 +134,6 @@ D_FlushCaches (void)
sc_base->size = sc_size;
}
surfcache_t *
D_SCAlloc (int width, int size)
{
@ -153,10 +146,10 @@ D_SCAlloc (int width, int size)
if ((size <= 0) || (size > 0x40000)) // FIXME ditto
Sys_Error ("D_SCAlloc: bad cache size %d", size);
/* This adds the offset of data[0] in the surfcache_t struct. */
// This adds the offset of data[0] in the surfcache_t struct.
size += field_offset (surfcache_t, data);
#define SIZE_ALIGN (sizeof(surfcache_t*)-1)
#define SIZE_ALIGN (sizeof (surfcache_t *) - 1)
size = (size + SIZE_ALIGN) & ~SIZE_ALIGN;
#undef SIZE_ALIGN
size = (size + 3) & ~3;
@ -219,7 +212,6 @@ D_SCAlloc (int width, int size)
return new;
}
void
D_SCDump (void)
{
@ -233,7 +225,6 @@ D_SCDump (void)
}
}
// if the num is not a power of 2, assume it will not repeat
int
MaskForNum (int num)
@ -249,7 +240,6 @@ MaskForNum (int num)
return 255;
}
int
D_log2 (int num)
{
@ -262,7 +252,6 @@ D_log2 (int num)
return c;
}
surfcache_t *
D_CacheSurface (msurface_t *surface, int miplevel)
{