summaryrefslogtreecommitdiff
path: root/src/smi_crtc.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-10-28 19:45:31 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-10-28 19:45:31 -0200
commit2671776999a5add36e1aeaad4080bfccedc2b1a5 (patch)
tree3242361542ee889970b4c594a67a97cfe24ea74d /src/smi_crtc.c
parent91b5613fb07fec0f319623ca7ec1efd67f04379b (diff)
Update msoc to use randr cursor routines
pSmi->IsSecondary was not used, and there should not exist two instances of the driver managing the same card. Macro CHECK_SECONDARY() was dependant on a second instance of the driver for the same card, and also removed. Some rework should still be done in the cursor code, as it sometimes, when displaying different data, will leave the hw cursor visible, while using an argb cursor.
Diffstat (limited to 'src/smi_crtc.c')
-rw-r--r--src/smi_crtc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/smi_crtc.c b/src/smi_crtc.c
index d182e37..9c452c9 100644
--- a/src/smi_crtc.c
+++ b/src/smi_crtc.c
@@ -74,9 +74,13 @@ SMI_CrtcModeFixup(xf86CrtcPtr crtc,
static void
SMI_CrtcPrepare(xf86CrtcPtr crtc)
{
+ ScrnInfoPtr pScrn = crtc->scrn;
+ SMIPtr pSmi = SMIPTR(pScrn);
+
ENTER();
- /* Nothing */
+ if (pSmi->HwCursor)
+ xf86_hide_cursors(pScrn);
LEAVE();
}