patch-2.4.0-test6 linux/drivers/char/console.c
Next file: linux/drivers/char/cpia.c
Previous file: linux/drivers/char/buz.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Wed Aug 9 14:18:26 2000
- Orig file:
v2.4.0-test5/linux/drivers/char/console.c
- Orig date:
Thu Jul 27 17:38:00 2000
diff -u --recursive --new-file v2.4.0-test5/linux/drivers/char/console.c linux/drivers/char/console.c
@@ -586,12 +586,12 @@
}
if (redraw) {
+ int update;
set_origin(currcons);
- if (sw->con_switch(vc_cons[currcons].d) && vcmode != KD_GRAPHICS) {
- /* Update the screen contents */
- set_palette(currcons);
+ update = sw->con_switch(vc_cons[currcons].d);
+ set_palette(currcons);
+ if (update && vcmode != KD_GRAPHICS)
do_update_region(currcons, origin, screenbuf_size/2);
- }
}
set_cursor(currcons);
if (is_switch) {
@@ -2674,6 +2674,7 @@
console_blanked = 0;
if (console_blank_hook)
console_blank_hook(0);
+ set_palette(currcons);
if (sw->con_blank(vc_cons[currcons].d, 0))
/* Low-level driver cannot restore -> do it ourselves */
update_screen(fg_console);
@@ -2940,7 +2941,9 @@
EXPORT_SYMBOL(vc_resize);
EXPORT_SYMBOL(fg_console);
EXPORT_SYMBOL(console_blank_hook);
-
+#ifdef CONFIG_VT
+EXPORT_SYMBOL(vt_cons);
+#endif
#ifndef VT_SINGLE_DRIVER
EXPORT_SYMBOL(take_over_console);
EXPORT_SYMBOL(give_up_console);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)