diff options
author | Keith Packard <keithp@keithp.com> | 2008-04-29 10:32:14 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2008-04-29 10:32:14 -0700 |
commit | fff17b9d1b58cb53032d153094826dd306836d59 (patch) | |
tree | 4a5767639ba38dacd4c37d627543878e24ea18eb /src/i830_driver.c | |
parent | 1d467a8038946a37844795e8860be113d43219ac (diff) |
Use new xf86RotateFreeShadow function to clean up shadow buffers.
This simply moves code from the driver up into the X server; use it where
available.
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r-- | src/i830_driver.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c index 6bf35662..9077c583 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -3136,7 +3136,9 @@ I830LeaveVT(int scrnIndex, int flags) ScrnInfoPtr pScrn = xf86Screens[scrnIndex]; I830Ptr pI830 = I830PTR(pScrn); xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(pScrn); +#ifndef HAVE_FREE_SHADOW int o; +#endif DPRINTF(PFX, "Leave VT\n"); @@ -3164,6 +3166,7 @@ I830LeaveVT(int scrnIndex, int flags) } #endif +#ifndef HAVE_FREE_SHADOW for (o = 0; o < config->num_crtc; o++) { xf86CrtcPtr crtc = config->crtc[o]; @@ -3174,6 +3177,9 @@ I830LeaveVT(int scrnIndex, int flags) crtc->rotatedData = NULL; } } +#else + xf86RotateFreeShadow(pScrn); +#endif xf86_hide_cursors (pScrn); |