Cleanup: ExpandMap() was never used, and its job is done by TopoScale4x() now; (ugly code anyhow)

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2071 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2005-12-14 18:50:16 +00:00
parent e03695fcfb
commit bc28e3268a
-49
View File
@@ -750,55 +750,6 @@ RenderLevelMasks (int offset)
#endif #endif
} }
#ifdef NOTYET
static void
ExpandMap (PSBYTE DepthArray)
{
BYTE i, j;
PSBYTE lpSrc, lpDst;
lpSrc = &DepthArray[(MAP_WIDTH >> 1) * ((MAP_HEIGHT >> 1) + 1) - 1];
lpDst = &DepthArray[MAP_WIDTH * MAP_HEIGHT - 1];
i = (MAP_HEIGHT >> 1) + 1;
do
{
SBYTE lf, rt;
rt = lpSrc[-(MAP_WIDTH >> 1) + 1];
lf = *lpSrc--;
*lpDst-- = (SBYTE)((rt + lf) >> 1);
*lpDst-- = lf;
j = (MAP_WIDTH >> 1) - 1;
do
{
rt = lf;
lf = *lpSrc--;
*lpDst-- = (SBYTE)((rt + lf) >> 1);
*lpDst-- = lf;
} while (--j);
lpDst -= MAP_WIDTH;
} while (--i);
lpDst = &DepthArray[MAP_WIDTH];
i = MAP_HEIGHT >> 1;
do
{
SBYTE top, bot;
j = MAP_WIDTH;
do
{
top = lpDst[-MAP_WIDTH];
bot = lpDst[MAP_WIDTH];
*lpDst++ = (SBYTE)((top + bot) >> 1);
} while (--j);
lpDst += MAP_WIDTH;
} while (--i);
}
#endif /* NOTYET */
#define RANGE_SHIFT 6 #define RANGE_SHIFT 6