summaryrefslogtreecommitdiff
path: root/driver/xf86-video-chips/src/ct_dga.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2011-05-07 08:37:31 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2011-05-07 08:37:31 +0000
commite167b3dbf29135855579e00857606348458fccb5 (patch)
tree92de0d57a5d425af3304ec38cd1a6a7dd1a45456 /driver/xf86-video-chips/src/ct_dga.c
parent86be96de294eee8f87de973dafb8944b25e25285 (diff)
Update to xf86-video-chips 1.2.4
Diffstat (limited to 'driver/xf86-video-chips/src/ct_dga.c')
-rw-r--r--driver/xf86-video-chips/src/ct_dga.c10
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);