Re: [PATCH] console palette fix

From: James Simmons (jsimmons@suse.com)
Date: Wed Oct 04 2000 - 17:34:05 EST


Here is patch to fix console palettes for the 2.2.X kernels. Its against
2.2.17.

--- console.c.orig Wed Oct 4 22:23:34 2000
+++ console.c Wed Oct 4 22:28:50 2000
@@ -575,10 +575,13 @@
         }
 
         if (redraw) {
+ int update;
+
                 set_origin(currcons);
+ update = sw->con_switch(vc_cons[currcons].d);
                 set_palette(currcons);
- if (sw->con_switch(vc_cons[currcons].d) && vcmode != KD_GRAPHICS)
- /* Update the screen contents */
+ if (update && vcmode != KD_GRAPHICS)
+ /* Update the screen contents */
                         do_update_region(currcons, origin, screenbuf_size/2);
         }
         set_cursor(currcons);

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



This archive was generated by hypermail 2b29 : Sat Oct 07 2000 - 21:00:15 EST