summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@guitar.keithp.com>2007-03-17 21:31:04 -0700
committerKeith Packard <keithp@guitar.keithp.com>2007-03-17 21:31:04 -0700
commit05e0021147a89254182c277007236448f315231c (patch)
treec1b62664d59a2839965b8b26e73c6074241d1e3b
parentd05bb5362e986c9d27bc03c7e1a939ba28824810 (diff)
Cast ARGB cursor address to CARD32 * to eliminate warning.
While we're just doing a memcpy, it's nice for the two argument types to match.
-rw-r--r--src/i830_cursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_cursor.c b/src/i830_cursor.c
index dec619fe..d97b2462 100644
--- a/src/i830_cursor.c
+++ b/src/i830_cursor.c
@@ -154,7 +154,7 @@ i830_crtc_load_cursor_argb (xf86CrtcPtr crtc, CARD32 *image)
I830CrtcPrivatePtr intel_crtc = crtc->driver_private;
CARD32 *pcurs;
- pcurs = pI830->FbBase + intel_crtc->cursor_argb_offset;
+ pcurs = (CARD32 *) (pI830->FbBase + intel_crtc->cursor_argb_offset);
intel_crtc->cursor_is_argb = TRUE;
memcpy (pcurs, image, I810_CURSOR_Y * I810_CURSOR_X * 4);