diff --git a/src/i830_cursor.c b/src/i830_cursor.c index 52eb266..f870788 100644 --- a/src/i830_cursor.c +++ b/src/i830_cursor.c @@ -143,6 +143,9 @@ i830_crtc_load_cursor_image (xf86CrtcPtr crtc, unsigned char *src) I830CrtcPrivatePtr intel_crtc = crtc->driver_private; CARD8 *pcurs; + if (!crtc->scrn->vtSema) + return; + pcurs = pI830->FbBase + intel_crtc->cursor_offset; intel_crtc->cursor_is_argb = FALSE; @@ -157,6 +160,9 @@ i830_crtc_load_cursor_argb (xf86CrtcPtr crtc, CARD32 *image) I830CrtcPrivatePtr intel_crtc = crtc->driver_private; CARD32 *pcurs; + if (!crtc->scrn->vtSema) + return; + pcurs = (CARD32 *) (pI830->FbBase + intel_crtc->cursor_argb_offset); intel_crtc->cursor_is_argb = TRUE;