xcalloc needs 2 args, Xcalloc takes one - yay for inconsistency!

This commit is contained in:
Alan Coopersmith
2007-11-26 13:14:40 -08:00
parent e9ada35b4d
commit 100f5e24da
2 changed files with 3 additions and 3 deletions

View File

@@ -135,11 +135,11 @@ TransformCursor (NVPtr pNv)
/* convert to color cursor */
if(pNv->alphaCursor) {
dwords = 64 * 64;
if(!(tmp = xcalloc(dwords * 4))) return;
if(!(tmp = Xcalloc(dwords * 4))) return;
ConvertCursor8888(pNv, pNv->curImage, tmp);
} else {
dwords = (32 * 32) >> 1;
if(!(tmp = xcalloc(dwords * 4))) return;
if(!(tmp = Xcalloc(dwords * 4))) return;
ConvertCursor1555(pNv, pNv->curImage, (CARD16*)tmp);
}

View File

@@ -72,7 +72,7 @@ RivaTransformCursor (RivaPtr pRiva)
int i, dwords;
dwords = (32 * 32) >> 1;
if(!(tmp = xcalloc(dwords * 4))) return;
if(!(tmp = Xcalloc(dwords * 4))) return;
RivaConvertCursor1555(pRiva, pRiva->curImage, (CARD16*)tmp);
for(i = 0; i < dwords; i++)