diff options
author | Francisco Jerez <currojerez@gmail.com> | 2008-10-28 00:06:37 +0100 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-10-28 15:09:43 -0200 |
commit | 0faeddb208d8fade4737be4bcadb8814696bd7b4 (patch) | |
tree | b969fbd6e8929f75dfc55c6483ae695ca4e5f116 /src/smi_crtc.c | |
parent | 5d151781515cf2e3af1322ce6ed5f8d871c05791 (diff) |
Lynx hardware cursor code adapted to the CRTC interfaces.
Diffstat (limited to 'src/smi_crtc.c')
-rw-r--r-- | src/smi_crtc.c | 55 |
1 files changed, 7 insertions, 48 deletions
diff --git a/src/smi_crtc.c b/src/smi_crtc.c index 429df28..d182e37 100644 --- a/src/smi_crtc.c +++ b/src/smi_crtc.c @@ -84,9 +84,13 @@ SMI_CrtcPrepare(xf86CrtcPtr crtc) static void SMI_CrtcCommit(xf86CrtcPtr crtc) { + ScrnInfoPtr pScrn = crtc->scrn; + SMIPtr pSmi = SMIPTR(pScrn); + ENTER(); - /* Nothing */ + if(pSmi->HwCursor) + xf86_reload_cursors(pScrn->pScreen); LEAVE(); } @@ -167,51 +171,12 @@ SMI_CrtcShadowDestroy (xf86CrtcPtr crtc, PixmapPtr pPixmap, void *data) } static void -SMI_CrtcSetCursorColors (xf86CrtcPtr crtc, int bg, int fg) -{ - ENTER(); - LEAVE(); -} - -static void -SMI_CrtcSetCursorPosition (xf86CrtcPtr crtc, int x, int y) -{ - ENTER(); - LEAVE(); -} - -static void -SMI_CrtcShowCursor (xf86CrtcPtr crtc) -{ - ENTER(); - LEAVE(); -} - -static void -SMI_CrtcHideCursor (xf86CrtcPtr crtc) -{ - ENTER(); - LEAVE(); -} - -static void -SMI_CrtcLoadCursorImage (xf86CrtcPtr crtc, CARD8 *image) +SMI_CrtcDestroy (xf86CrtcPtr crtc) { ENTER(); - LEAVE(); -} -static void -SMI_CrtcLoadCursorArgb (xf86CrtcPtr crtc, CARD32 *image) -{ - ENTER(); - LEAVE(); -} + /* Nothing */ -static void -SMI_CrtcDestroy (xf86CrtcPtr crtc) -{ - ENTER(); LEAVE(); } @@ -290,12 +255,6 @@ SMI_CrtcFuncsInit_base(xf86CrtcFuncsPtr crtcFuncs, SMICrtcPrivatePtr crtcPriv){ crtcFuncs->shadow_allocate = SMI_CrtcShadowAllocate; crtcFuncs->shadow_create = SMI_CrtcShadowCreate; crtcFuncs->shadow_destroy = SMI_CrtcShadowDestroy; - crtcFuncs->set_cursor_colors = SMI_CrtcSetCursorColors; - crtcFuncs->set_cursor_position = SMI_CrtcSetCursorPosition; - crtcFuncs->show_cursor = SMI_CrtcShowCursor; - crtcFuncs->hide_cursor = SMI_CrtcHideCursor; - crtcFuncs->load_cursor_image = SMI_CrtcLoadCursorImage; - crtcFuncs->load_cursor_argb = SMI_CrtcLoadCursorArgb; crtcFuncs->destroy = SMI_CrtcDestroy; } |