mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 12:04:08 +00:00
fbdev: clean the penguin's dirty feet
When booting in a direct color mode, the penguin has dirty feet, i.e., some pixels have the wrong color. This is caused by fb_set_logo_directpalette() which does not initialize the last 32 palette entries. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Krzysztof Helt <krzysztof.h1@poczta.fm> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
e00b4ff7eb
commit
cf7ee554f3
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ static void fb_set_logo_directpalette(struct fb_info *info,
|
||||||
greenshift = info->var.green.offset;
|
greenshift = info->var.green.offset;
|
||||||
blueshift = info->var.blue.offset;
|
blueshift = info->var.blue.offset;
|
||||||
|
|
||||||
for (i = 32; i < logo->clutsize; i++)
|
for (i = 32; i < 32 + logo->clutsize; i++)
|
||||||
palette[i] = i << redshift | i << greenshift | i << blueshift;
|
palette[i] = i << redshift | i << greenshift | i << blueshift;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue