diff options
Diffstat (limited to 'driver/xf86-video-chips/src/ct_dga.c')
-rw-r--r-- | driver/xf86-video-chips/src/ct_dga.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/driver/xf86-video-chips/src/ct_dga.c b/driver/xf86-video-chips/src/ct_dga.c index e3c1a00bf..32f3aa3b0 100644 --- a/driver/xf86-video-chips/src/ct_dga.c +++ b/driver/xf86-video-chips/src/ct_dga.c @@ -95,15 +95,15 @@ CHIPSDGAInit(ScreenPtr pScreen) while(pMode) { if(0 /*pScrn->displayWidth != pMode->HDisplay*/) { - newmodes = xrealloc(modes, (num + 2) * sizeof(DGAModeRec)); + newmodes = realloc(modes, (num + 2) * sizeof(DGAModeRec)); oneMore = TRUE; } else { - newmodes = xrealloc(modes, (num + 1) * sizeof(DGAModeRec)); + newmodes = realloc(modes, (num + 1) * sizeof(DGAModeRec)); oneMore = FALSE; } if(!newmodes) { - xfree(modes); + free(modes); return FALSE; } modes = newmodes; @@ -239,8 +239,8 @@ CHIPS_SetViewport( CHIPSPtr cPtr = CHIPSPTR(pScrn); if (flags & DGA_FLIP_RETRACE) { - while ((hwp->readST01(hwp)) & 0x08){}; - while (!(hwp->readST01(hwp)) & 0x08){}; + while ((hwp->readST01(hwp)) & 0x08){}; + while (!((hwp->readST01(hwp)) & 0x08)){}; } CHIPSAdjustFrame(pScrn->pScreen->myNum, x, y, flags); |