summaryrefslogtreecommitdiff
path: root/src/radeon_cursor.c
diff options
context:
space:
mode:
authorDavid Airlie <airlied@asimov.stargames.com.au>2007-01-23 15:20:11 +1100
committerDave Airlie <airlied@linux.ie>2007-01-23 15:04:54 +1100
commit9149e763865598c307cbefc753ff6ebdeeaf32ae (patch)
tree3e6493e86dc269b0b687cef6fe0493fb1b2d8d68 /src/radeon_cursor.c
parent2a13a3b641d9acf4f50472e1c8ba07633c3b78d6 (diff)
radeon: fixup problem with cursor not going off
Also fixup secondary dac detect to return unknown for now
Diffstat (limited to 'src/radeon_cursor.c')
-rw-r--r--src/radeon_cursor.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/radeon_cursor.c b/src/radeon_cursor.c
index 79d4a23..ac6f358 100644
--- a/src/radeon_cursor.c
+++ b/src/radeon_cursor.c
@@ -114,11 +114,12 @@ RADEONCrtcCursor(xf86CrtcPtr crtc, Bool force)
Bool show;
unsigned char *RADEONMMIO = info->MMIO;
CARD32 save1 = 0, save2 = 0;
- if (!crtc->enabled)
- return;
+
+ if (!crtc->enabled && !crtc->cursorShown)
+ return;
- show = crtc->cursorInRange;
+ show = crtc->cursorInRange && crtc->enabled;
if (show && (force || !crtc->cursorShown))
{
if (crtc_id == 0)
@@ -205,7 +206,7 @@ RADEONRandrSetCursorPosition(ScrnInfoPtr pScrn, int x, int y)
int thisx = x - crtc->x;
int thisy = y - crtc->y;
- if (!crtc->enabled)
+ if (!crtc->enabled && !crtc->cursorShown)
continue;
/*