[PATCH] fix set_palette bug in console.c

From: James Simmons (jsimmons@acsu.buffalo.edu)
Date: Tue May 30 2000 - 09:39:34 EST


Hi!

  This patch a bug in the VT switching code in redraw_screen in console.c.
For most video cards you need to see the color palette after you set the
video mode. For fbdev drivers the con_switch hook changes the video mode
and with most of these video cards the way the palette is set depends on
the current video mode. Please test this patch and report the results.
Thank you.

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

--- console.c.orig Tue May 30 10:34:02 2000
+++ console.c Tue May 30 10:34:36 2000
@@ -581,8 +581,8 @@
 
         if (redraw) {
                 set_origin(currcons);
- set_palette(currcons);
                 if (sw->con_switch(vc_cons[currcons].d) && vcmode != KD_GRAPHICS)
+ sw->con_set_palette(vc_cons[currcons].d, color_table);
                         /* Update the screen contents */
                         do_update_region(currcons, origin, screenbuf_size/2);
         }

-
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 May 31 2000 - 21:00:24 EST