mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
video: fbdev: atari: Fix ext_setcolreg()
The red, green, and blue color values are 16-bit, while the external graphics hardware registers are 8-bit. Add the missing conversion from 16-bit to 8-bit. 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
c7ef5e285c
commit
35fa155e83
|
|
@ -2206,6 +2206,10 @@ static int ext_setcolreg(unsigned int regno, unsigned int red,
|
|||
if (regno > 255)
|
||||
return 1;
|
||||
|
||||
red >>= 8;
|
||||
green >>= 8;
|
||||
blue >>= 8;
|
||||
|
||||
switch (external_card_type) {
|
||||
case IS_VGA:
|
||||
OUTB(0x3c8, regno);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user