]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] atyfb: Fix hardware cursor handling
authorAntonino A. Daplas <adaplas@gmail.com>
Mon, 26 Jun 2006 07:26:31 +0000 (00:26 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 16:58:29 +0000 (09:58 -0700)
commit72c24cc51aef31219f2e258b4dcb68e09399e040
tree22744106aeeef6f10abf45b34e2a5c3e5da8cb09
parent8eec4981080dc9dcf8fd5931a947c6f066ee0be6
[PATCH] atyfb: Fix hardware cursor handling

Fix image and color handling in atyfb_cursor()

- In the 2-bit scheme of the cursor image, just set the first bit to be
  always zero (turn off transparency and/or XOR), and just do the masking
  manually

- The cursor color is converted into 32-bit RGBA8888 using struct fb_cmap.
  Each component in the cmap is u16 in size, so mask the upper 8 bits.

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/aty/mach64_cursor.c