diff options
Diffstat (limited to 'src/smi501_crtc.c')
-rw-r--r-- | src/smi501_crtc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/smi501_crtc.c b/src/smi501_crtc.c index 606a169..9cf6817 100644 --- a/src/smi501_crtc.c +++ b/src/smi501_crtc.c @@ -440,9 +440,11 @@ SMI501_CrtcLoadCursorImage(xf86CrtcPtr crtc, CARD8 *image) ENTER(); port = crtc == crtcConf->crtc[0] ? 0x00f0 : 0x0230; - value = pSmi->FBCursorOffset + (port == 0x00f0 ? 0 : 1024); + value = pSmi->FBCursorOffset + (port == 0x00f0 ? 0 : SMI501_MAX_CURSOR); WRITE_DCR(pSmi, port, value); - memcpy(pSmi->FBBase + value, image, 1024); + memcpy(pSmi->FBBase + value, image, + /* FIXME 1024, but then, should not be using 64x64 cursors */ + (SMI501_MAX_CURSOR >> 2) * SMI501_MAX_CURSOR); LEAVE(); } |