alistair23-linux/drivers/video/aty
Mikulas Patocka 43751a1b8e mach64: fix cursor when character width is not a multiple of 8 pixels
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>
Cc: stable@vger.kernel.org
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2014-02-11 15:01:04 +02:00
..
ati_ids.h Radeonfb Xpress 200M RC410 support 2007-10-16 09:43:19 -07:00
aty128fb.c drivers/video/aty/aty128fb.c: fix a warning pertaining to the aty128fb backlight variable 2014-01-23 16:36:55 -08:00
atyfb.h atyfb: fix alignment for block writes 2009-06-30 18:56:01 -07:00
atyfb_base.c atyfb: set FBINFO_READS_FAST 2014-02-11 15:01:04 +02:00
mach64_accel.c mach64: use unaligned access 2014-02-11 15:01:04 +02:00
mach64_ct.c Drivers: video: remove __dev* attributes. 2013-01-03 15:57:01 -08:00
mach64_cursor.c mach64: fix cursor when character width is not a multiple of 8 pixels 2014-02-11 15:01:04 +02:00
mach64_gx.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
Makefile
radeon_accel.c Revert "radeonfb: accelerate imageblit and other improvements" 2008-12-10 16:53:32 -08:00
radeon_backlight.c backlight: add backlight type 2011-03-22 17:43:59 -07:00
radeon_base.c video: aty: Remove incorrect checks 2013-09-26 11:52:31 +03:00
radeon_i2c.c radeonfb: Let hwmon driver probe the "monid" I2C bus 2011-03-22 16:17:48 +09:00
radeon_monitor.c Drivers: video: remove __dev* attributes. 2013-01-03 15:57:01 -08:00
radeon_pm.c radeon: Conditionally compile PM code 2013-09-20 12:14:26 +03:00
radeonfb.h radeonfb: Use pci_dev pm_cap 2013-09-19 13:30:06 +03:00