summaryrefslogtreecommitdiff
path: root/src/radeon_cursor.c
diff options
context:
space:
mode:
authorAlex Deucher <alex@t41p.hsd1.va.comcast.net>2007-06-28 22:15:22 -0400
committerAlex Deucher <alex@t41p.hsd1.va.comcast.net>2007-06-28 22:15:22 -0400
commit2754d1ba01fc3367019487e0c0f59d74c950aaa7 (patch)
tree48d48845e6d4dcd96da719a1e2cefd0ca8dfabad /src/radeon_cursor.c
parent7901bcafa92dccd319ddb5de4627d806a39f15f9 (diff)
RADEON: Switch cursor back to memcpy()
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 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 ();
}