summaryrefslogtreecommitdiffstats
path: root/drivers/video/pm2fb.c
diff options
context:
space:
mode:
authorMichal Januszewski <spock@gentoo.org>2005-07-27 20:46:08 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-28 01:26:19 +0200
commit03e259a9cdbd0583e71468293aaa1ccadbdaeff1 (patch)
treeee41f6bcfbeeeb6f3cd269622d499ee9eb6df233 /drivers/video/pm2fb.c
parent[PATCH] fbcon: don't repaint the cursor when it is disabled. (diff)
downloadlinux-03e259a9cdbd0583e71468293aaa1ccadbdaeff1.tar.xz
linux-03e259a9cdbd0583e71468293aaa1ccadbdaeff1.zip
[PATCH] fbdev: update info->cmap when setting cmap from user-/kernelspace.
The fb_info struct, as defined in include/linux/fb.h, contains an element that is supposed to hold the current color map: struct fb_cmap cmap; /* Current cmap */ This cmap is currently never updated when either fb_set_cmap() or fb_set_user_cmap() are called. As a result, info->cmap contains the default cmap that was set by a device driver/fbcon and a userspace application using the FBIOGETCMAP ioctl will not always get the *currently* used color map. The patch fixes this by making sure the cmap is copied to info->cmap after it is set correctly. It moves most of the code that is responsible for setting the cmap to fb_set_cmap() and out of fb_set_user_cmap() to avoid code-duplication. Signed-off-by: Michal Januszewski <spock@gentoo.org> Cc: <linux-fbdev-devel@lists.sourceforge.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/pm2fb.c')
0 files changed, 0 insertions, 0 deletions