Fix colors for Mach64
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 2 Jun 2010 15:09:04 +0000 (11:09 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 2 Jun 2010 21:41:12 +0000 (14:41 -0700)
Use the same color-calculating algorithm as in atyfb_imageblit in this
driver or in generic cfb_fillrect.

This patch fixes bad colors when using an accelerator in 15-bit and
16-bit modes.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

No differences found