diff options
author | Alex Deucher <alex@t41p.hsd1.va.comcast.net> | 2007-06-28 22:15:22 -0400 |
---|---|---|
committer | Alex Deucher <alex@t41p.hsd1.va.comcast.net> | 2007-06-28 22:15:22 -0400 |
commit | 2754d1ba01fc3367019487e0c0f59d74c950aaa7 (patch) | |
tree | 48d48845e6d4dcd96da719a1e2cefd0ca8dfabad /src/radeon_cursor.c | |
parent | 7901bcafa92dccd319ddb5de4627d806a39f15f9 (diff) |
RADEON: Switch cursor back to memcpy()
Diffstat (limited to 'src/radeon_cursor.c')
-rw-r--r-- | src/radeon_cursor.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/radeon_cursor.c b/src/radeon_cursor.c index e59d2b3..f19f2bc 100644 --- a/src/radeon_cursor.c +++ b/src/radeon_cursor.c @@ -219,8 +219,6 @@ radeon_crtc_load_cursor_argb (xf86CrtcPtr crtc, CARD32 *image) RADEONInfoPtr info = RADEONPTR(pScrn); unsigned char *RADEONMMIO = info->MMIO; CARD32 *d = (CARD32 *)(pointer)(info->FB + info->cursor_offset + pScrn->fbOffset); - int x, y, w, h; - CARD32 *i; RADEONCTRACE(("RADEONLoadCursorARGB\n")); @@ -228,14 +226,7 @@ radeon_crtc_load_cursor_argb (xf86CrtcPtr crtc, CARD32 *image) CURSOR_SWAPPING_START(); - w = CURSOR_WIDTH; - h = CURSOR_HEIGHT; - for (y = 0; y < h; y++) { - i = image; - image += w; - for (x = 0; x < w; x++) - *d++ = *i++; - } + memcpy (d, image, CURSOR_HEIGHT * CURSOR_WIDTH * 4); CURSOR_SWAPPING_END (); } |