From 20568f66f9a9a60a33bd9a69ccc14a891c656836 Mon Sep 17 00:00:00 2001 From: Arkadiusz Miskiewicz Date: Tue, 18 Dec 2007 15:32:10 -0500 Subject: RADEON: more cleanups and warning fixes --- src/radeon_crtc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/radeon_crtc.c') diff --git a/src/radeon_crtc.c b/src/radeon_crtc.c index 41375dae..07857dd5 100644 --- a/src/radeon_crtc.c +++ b/src/radeon_crtc.c @@ -145,15 +145,13 @@ RADEONInitCommonRegisters(RADEONSavePtr save, RADEONInfoPtr info) static void RADEONInitSurfaceCntl(xf86CrtcPtr crtc, RADEONSavePtr save) { - ScrnInfoPtr pScrn = crtc->scrn; - save->surface_cntl = 0; #if X_BYTE_ORDER == X_BIG_ENDIAN /* We must set both apertures as they can be both used to map the entire * video memory. -BenH. */ - switch (pScrn->bitsPerPixel) { + switch (crtc->scrn->bitsPerPixel) { case 16: save->surface_cntl |= RADEON_NONSURF_AP0_SWP_16BPP; save->surface_cntl |= RADEON_NONSURF_AP1_SWP_16BPP; -- cgit v1.2.3