mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
video: fbdev: atari: Fix inverse handling
Currently, the "inverse" option does not do anything, as it just sets a flag, which is further unused. Fix this by calling fb_invert_cmaps() instead, like other drivers do. As this only affects the console colormap, this does not affect X. Update the documentation to match the actual behavior. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Tested-by: Michael Schmitz <schmitzmic@gmail.com> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
211f88e83f
commit
c7ef5e285c
2 changed files with 3 additions and 5 deletions
|
@ -367,8 +367,8 @@ activated by a "external:" sub-option.
|
||||||
4.1.2) inverse
|
4.1.2) inverse
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
Invert the display. This affects both, text (consoles) and graphics
|
Invert the display. This affects only text consoles.
|
||||||
(X) display. Usually, the background is chosen to be black. With this
|
Usually, the background is chosen to be black. With this
|
||||||
option, you can make the background white.
|
option, you can make the background white.
|
||||||
|
|
||||||
4.1.3) font
|
4.1.3) font
|
||||||
|
|
|
@ -236,8 +236,6 @@ static int *MV300_reg = MV300_reg_8bit;
|
||||||
#endif /* ATAFB_EXT */
|
#endif /* ATAFB_EXT */
|
||||||
|
|
||||||
|
|
||||||
static int inverse;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* struct fb_ops {
|
* struct fb_ops {
|
||||||
* * open/release and usage marking
|
* * open/release and usage marking
|
||||||
|
@ -2971,7 +2969,7 @@ static int __init atafb_setup(char *options)
|
||||||
default_par = temp;
|
default_par = temp;
|
||||||
mode_option = this_opt;
|
mode_option = this_opt;
|
||||||
} else if (!strcmp(this_opt, "inverse"))
|
} else if (!strcmp(this_opt, "inverse"))
|
||||||
inverse = 1;
|
fb_invert_cmaps();
|
||||||
else if (!strncmp(this_opt, "hwscroll_", 9)) {
|
else if (!strncmp(this_opt, "hwscroll_", 9)) {
|
||||||
hwscroll = simple_strtoul(this_opt + 9, NULL, 10);
|
hwscroll = simple_strtoul(this_opt + 9, NULL, 10);
|
||||||
if (hwscroll < 0)
|
if (hwscroll < 0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue