diff options
author | Henry Nestler <henry.nestler@gmail.com> | 2011-02-20 20:50:56 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-03-27 11:36:04 -0700 |
commit | 4676dbc1af6205dc136e0d5b2a5fe40d3c2c025d (patch) | |
tree | 53b78a24e9e01992e1f9236895607246bb3cd838 | |
parent | edccdb2bd8f5cbc029820f923e4cbb737a36753c (diff) | |
download | lwn-4676dbc1af6205dc136e0d5b2a5fe40d3c2c025d.tar.gz lwn-4676dbc1af6205dc136e0d5b2a5fe40d3c2c025d.zip |
fbcon: Bugfix soft cursor detection in Tile Blitting
commit d6244bc0ed0c52a795e6f4dcab3886daf3e74fac upstream.
Use mask 0x10 for "soft cursor" detection on in function tile_cursor.
(Tile Blitting Operation in framebuffer console).
The old mask 0x01 for vc_cursor_type detects CUR_NONE, CUR_LOWER_THIRD
and every second mode value as "software cursor". This hides the cursor
for these modes (cursor.mode = 0). But, only CUR_NONE or "software cursor"
should hide the cursor.
See also 0x10 in functions add_softcursor, bit_cursor and cw_cursor.
Signed-off-by: Henry Nestler <henry.nestler@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/video/console/tileblit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/console/tileblit.c b/drivers/video/console/tileblit.c index 0056a41e5c35..15e8e1a89c45 100644 --- a/drivers/video/console/tileblit.c +++ b/drivers/video/console/tileblit.c @@ -83,7 +83,7 @@ static void tile_cursor(struct vc_data *vc, struct fb_info *info, int mode, int softback_lines, int fg, int bg) { struct fb_tilecursor cursor; - int use_sw = (vc->vc_cursor_type & 0x01); + int use_sw = (vc->vc_cursor_type & 0x10); cursor.sx = vc->vc_x; cursor.sy = vc->vc_y; |