mirror of
https://github.com/X11Libre/xf86-video-nv.git
synced 2026-03-24 01:24:21 +00:00
xcalloc needs 2 args, Xcalloc takes one - yay for inconsistency!
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user