Files
linux/drivers/video
Mikulas Patocka ecb4abb32b mach64: fix cursor when character width is not a multiple of 8 pixels
commit 43751a1b8e upstream.

This patch fixes the hardware cursor on mach64 when font width is not a
multiple of 8 pixels.

If you load such a font, the cursor is expanded to the next 8-byte
boundary and a part of the next character after the cursor is not
visible.
For example, when you load a font with 12-pixel width, the cursor width
is 16 pixels and when the cursor is displayed, 4 pixels of the next
character are not visible.

The reason is this: atyfb_cursor is called with proper parameters to
load an image that is 12-pixel wide. However, the number is aligned on
the next 8-pixel boundary on the line
"unsigned int width = (cursor->image.width + 7) >> 3;" and the whole
function acts as it is was loading a 16-pixel image.

This patch fixes it so that the value written to the framebuffer is
padded with 0xaaaa (the transparent pattern) when the image size it not
a multiple of 8 pixels. The transparent pattern causes that the cursor
will not interfere with the next character.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-13 13:59:43 +02:00
..
2013-02-22 23:31:31 -05:00
2011-10-03 15:52:38 +00:00
2011-03-31 11:26:23 -03:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2014-05-13 13:59:42 +02:00
2013-04-18 13:03:53 +10:00
2013-02-22 23:31:31 -05:00
2013-04-24 08:41:41 +03:00
2013-04-26 08:28:56 +03:00
2013-03-20 16:26:32 +01:00
2013-04-12 14:01:40 +10:00
2013-11-20 12:27:47 -08:00
2012-02-15 04:31:21 +00:00
2012-01-22 14:50:02 +01:00
2011-09-14 16:40:52 +00:00
2013-05-02 14:59:21 +03:00
2013-04-12 15:21:36 +02:00
2013-04-24 08:41:42 +03:00
2013-04-26 08:28:56 +03:00
2013-04-12 15:21:36 +02:00
2013-04-26 08:28:56 +03:00
2011-06-24 17:14:39 +09:00
2011-07-04 16:02:48 +09:00
2013-04-26 08:28:56 +03:00