summaryrefslogtreecommitdiff
path: root/src/smi_crtc.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-12-13 04:20:20 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-12-13 04:20:20 -0200
commit695a6066cfe7ad0e568edc596b8704bb9bf8754f (patch)
tree2b71110c23ab5af3aed913e4aa965cecb6c6a633 /src/smi_crtc.c
parent191cbd3f8419cc5b428f262607d7a8594e574f67 (diff)
Janitor/maintenance patches.
o Define HAVE_XMODES in config.h. o Correct the LEAVE() macro declaration when SMI_DEBUG is defined. o Remove prototype for SMI_DGAInit() if HAVE_XMODES is not defined. o Properly scale value read from sm501 CURRENT_CLOCK register, to print an appropriate message on startup.
Diffstat (limited to 'src/smi_crtc.c')
-rw-r--r--src/smi_crtc.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/smi_crtc.c b/src/smi_crtc.c
index c84e4c2..49354ea 100644
--- a/src/smi_crtc.c
+++ b/src/smi_crtc.c
@@ -77,22 +77,14 @@ SMI_CrtcModeFixup(xf86CrtcPtr crtc,
static void
SMI_CrtcPrepare(xf86CrtcPtr crtc)
{
- ScrnInfoPtr pScrn = crtc->scrn;
- SMIPtr pSmi = SMIPTR(pScrn);
-
ENTER();
-
LEAVE();
}
static void
SMI_CrtcCommit(xf86CrtcPtr crtc)
{
- ScrnInfoPtr pScrn = crtc->scrn;
- SMIPtr pSmi = SMIPTR(pScrn);
-
ENTER();
-
LEAVE();
}
@@ -123,7 +115,7 @@ SMI_CrtcShadowAllocate (xf86CrtcPtr crtc, int width, int height)
SMIPtr pSmi = SMIPTR(pScrn);
SMICrtcPrivatePtr crtcPriv = SMICRTC(crtc);
int offset, size;
- char *result = NULL;
+ unsigned char *result = NULL;
ENTER();