android_kernel_google_msm/drivers/video/aty
Mikulas Patocka 34dc182bf3 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 14:11:30 +02:00
..
ati_ids.h
aty128fb.c backlight: add backlight type 2011-03-22 17:43:59 -07:00
atyfb.h
atyfb_base.c module_param: make bool parameters really bool (drivers & misc) 2012-01-13 09:32:20 +10:30
mach64_accel.c mach64: use unaligned access 2014-05-13 14:11:30 +02:00
mach64_ct.c
mach64_cursor.c mach64: fix cursor when character width is not a multiple of 8 pixels 2014-05-13 14:11:30 +02:00
mach64_gx.c
Makefile
radeon_accel.c
radeon_backlight.c backlight: add backlight type 2011-03-22 17:43:59 -07:00
radeon_base.c module_param: make bool parameters really bool (drivers & misc) 2012-01-13 09:32:20 +10:30
radeon_i2c.c radeonfb: Let hwmon driver probe the "monid" I2C bus 2011-03-22 16:17:48 +09:00
radeon_monitor.c
radeon_pm.c console: rename acquire/release_console_sem() to console_lock/unlock() 2011-01-26 10:50:06 +10:00
radeonfb.h