summaryrefslogtreecommitdiff
path: root/src/radeon_cursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/radeon_cursor.c')
-rw-r--r--src/radeon_cursor.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/radeon_cursor.c b/src/radeon_cursor.c
index e59d2b36..f19f2bc0 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 ();
}