linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fb: clean the penguin's dirty feet
@ 2008-11-10  9:52 Clemens Ladisch
  2008-11-11 12:27 ` Geert Uytterhoeven
  0 siblings, 1 reply; 2+ messages in thread
From: Clemens Ladisch @ 2008-11-10  9:52 UTC (permalink / raw)
  To: linux-fbdev-devel

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>

--- linux-2.6.orig/drivers/video/fbmem.c
+++ linux-2.6/drivers/video/fbmem.c
@@ -232,7 +232,7 @@ static void fb_set_logo_directpalette(st
 	greenshift = info->var.green.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;
 }


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] fb: clean the penguin's dirty feet
  2008-11-10  9:52 [PATCH] fb: clean the penguin's dirty feet Clemens Ladisch
@ 2008-11-11 12:27 ` Geert Uytterhoeven
  0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2008-11-11 12:27 UTC (permalink / raw)
  To: Clemens Ladisch, Andrew Morton; +Cc: Linux Frame Buffer Device Development

On Mon, 10 Nov 2008, Clemens Ladisch wrote:
> 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.

Nice catch!
It seems to be introduced by commit 0bcb4ab100ef9ac2afaab3e0e929314e43820fc8
("Supprt for switching hardware from/to vga text mode.", from
full-history-linux) back in 2002...

> Signed-off-by: Clemens Ladisch <clemens@ladisch.de>

Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>

> --- linux-2.6.orig/drivers/video/fbmem.c
> +++ linux-2.6/drivers/video/fbmem.c
> @@ -232,7 +232,7 @@ static void fb_set_logo_directpalette(st
>  	greenshift = info->var.green.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;
>  }

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-11 12:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-10  9:52 [PATCH] fb: clean the penguin's dirty feet Clemens Ladisch
2008-11-11 12:27 ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).