Re: [PATCH] fix set_palette bug in console.c

From: James Simmons (jsimmons@acsu.buffalo.edu)
Date: Wed May 31 2000 - 20:06:25 EST


On Wed, 31 May 2000, Yuri Per wrote:

> Hi!
>
> I have tried such change before sending my own patch. It really works.
> I am not sure that such patch has no side effects on the vgacon driver.
> In fact, set_palette is not required for fbcon driver at all, because
> framebuffer drivers remebers palette themselves.

I tried the patch with vgacon. No problem. Also their is a problem with
set_origin being calling before the VT switch hook for the driver. It
should be:

        if (redraw) {
                  if (sw->con_switch(vc_cons[currcons].d) && vcmode != KD_GRAPHICS)
                        set_origin(currcons);
                        sw->con_set_palette(vc_cons[currcons].d, color_table);
                          /* Update the screen contents */
                          do_update_region(currcons, origin, screenbuf_size/2);
          }

I tried this patch with vgacon and matroxfb driver and it worked like a
charm.

Q: Why did they deprecate a.out support in linux?
A: Because a nasty coff is bad for your elf.

James Simmons [jsimmons@linux-fbdev.org] ____/|
fbdev/console/gfx developer \ o.O|
http://www.linux-fbdev.org =(_)=
http://linuxgfx.sourceforge.net U
http://linuxconsole.sourceforge.net

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:11 EST