Commit 6e28280d authored by Antonino Daplas's avatar Antonino Daplas Committed by Linus Torvalds

[PATCH] fbdev: Check if cursor image has changed in intelfb

Check if cursor image has changed in intelfb
Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 395d070e
...@@ -1573,7 +1573,7 @@ intelfb_cursor(struct fb_info *info, struct fb_cursor *cursor) ...@@ -1573,7 +1573,7 @@ intelfb_cursor(struct fb_info *info, struct fb_cursor *cursor)
intelfbhw_cursor_setcolor(dinfo, bg, fg); intelfbhw_cursor_setcolor(dinfo, bg, fg);
} }
if (cursor->set & FB_CUR_SETSHAPE) { if (cursor->set & (FB_CUR_SETSHAPE & FB_CUR_SETIMAGE)) {
u32 s_pitch = (ROUND_UP_TO(cursor->image.width, 8) / 8); u32 s_pitch = (ROUND_UP_TO(cursor->image.width, 8) / 8);
u32 size = s_pitch * cursor->image.height; u32 size = s_pitch * cursor->image.height;
u8 *dat = (u8 *) cursor->image.data; u8 *dat = (u8 *) cursor->image.data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment