linux-IllusionX/drivers/char
Antonino A. Daplas 3b41dc1a3c [PATCH] console: Fix buffer copy on vc resize
On a vc resize, the contents of the old screen buffer are transferred to the
new screenbuffer.  If the new screenbuffer is smaller than the old one, only
the contents from the bottom are copied to new.  If the contents of the old
buffer are located at the top, then the contents will not be copied to the new
buffer resulting in a blank screen.

This bug will happen only if the vc in question is not in the foreground.
Doing an fbset -a or con2fbmap will trigger this bug.

To fix this problem, base the start of the copy from the location of the
current cursor.  If the cursor is near the top of the buffer, copy the
contents at the top, and if the cursor is near the bottom of the buffer, then
copy the contents at the bottom.  In the unlikely case where the new row size
is greater than 2x smaller than the old one, and the cursor is in the middle,
copy 1/2 screenful from the top and bottom of the cursor position.

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-09 13:58:00 -07:00
..
agp [AGPGART] Remove trailing space before \n 2005-09-01 10:50:13 -07:00
drm [PATCH] PCI: remove CONFIG_PCI_NAMES 2005-09-08 14:57:23 -07:00
ftape
ip2
ipmi Merge linux-2.6 with linux-acpi-2.6 2005-09-08 01:45:47 -04:00
mwave [SERIAL] Convert mwave to use serial8250_(un)?register_port 2005-08-31 22:19:33 +01:00
pcmcia
rio
tpm Merge linux-2.6 with linux-acpi-2.6 2005-09-08 01:45:47 -04:00
watchdog Merge watchdog driver updates 2005-09-05 06:00:45 -07:00
amiserial.c
applicom.c
applicom.h
cd1865.h
ChangeLog
consolemap.c
cp437.uni
cyclades.c
decserial.c
defkeymap.c_shipped
defkeymap.map
digi.h
digi1.h [PATCH] Clean up the old digi support and rescue it 2005-09-07 16:57:20 -07:00
digiFep1.h [PATCH] Clean up the old digi support and rescue it 2005-09-07 16:57:20 -07:00
digiPCI.h
ds1286.c
ds1302.c
ds1620.c
dsp56k.c
dtlk.c
ec3104_keyb.c
efirtc.c
epca.c [PATCH] Clean up the old digi support and rescue it 2005-09-07 16:57:20 -07:00
epca.h [PATCH] Clean up the old digi support and rescue it 2005-09-07 16:57:20 -07:00
epcaconfig.h
esp.c
generic_nvram.c
generic_serial.c
genrtc.c
hangcheck-timer.c
hpet.c Merge linux-2.6 with linux-acpi-2.6 2005-09-08 01:45:47 -04:00
hvc_console.c
hvc_vio.c
hvcs.c
hvsi.c
hw_random.c
i8k.c
ip2.c
ip2main.c [PATCH] gratuitous includes of asm/serial.h 2005-09-09 10:31:58 -07:00
ip27-rtc.c
isicom.c
istallion.c
ite_gpio.c
Kconfig [PATCH] gratuitous includes of asm/serial.h 2005-09-09 10:31:58 -07:00
keyboard.c
lcd.c
lcd.h
lp.c
Makefile
mbcs.c [PATCH] drivers: convert kcalloc to kzalloc 2005-09-07 16:57:46 -07:00
mbcs.h
mem.c [PATCH] remove a dead extern in mem.c 2005-09-07 16:57:23 -07:00
misc.c [PATCH] move m68k rtc drivers over to initcalls 2005-09-07 16:57:23 -07:00
mmtimer.c
moxa.c [SERIAL] Fix moxa tty driver name 2005-09-03 16:26:49 +01:00
mxser.c [MOXA]: Fix this driver properly. 2005-09-05 23:30:15 -07:00
mxser.h
n_hdlc.c
n_r3964.c
n_tty.c
nvram.c
nwbutton.c
nwbutton.h
nwflash.c
ppdev.c
pty.c [PATCH] pty_chars_in_buffer oops fix 2005-09-09 13:57:31 -07:00
qtronix.c
qtronixmap.c_shipped
qtronixmap.map
random.c
raw.c
riscom8.c
riscom8.h
riscom8_reg.h
rocket.c
rocket.h
rocket_int.h
rtc.c [RTC]: Use SA_SHIRQ in sparc specific code. 2005-09-05 23:33:05 -07:00
s3c2410-rtc.c
scan_keyb.c
scan_keyb.h
scc.h
scx200_gpio.c
selection.c
ser_a2232.c
ser_a2232.h
ser_a2232fw.ax
ser_a2232fw.h
serial167.c
snsc.c
snsc.h
snsc_event.c
sonypi.c [PATCH] sonypi: remove obsolete event 2005-09-07 16:57:24 -07:00
specialix.c
specialix_io8.h
stallion.c
sx.c
sx.h
sxboards.h
sxwindow.h
synclink.c [PATCH] synclink.c: add loopback to async mode 2005-09-09 13:57:34 -07:00
synclinkmp.c [PATCH] synclinkmp.c: fix async internal loopback 2005-09-09 13:57:35 -07:00
sysrq.c
tb0219.c
tipar.c
toshiba.c
tty_io.c [PATCH] files: lock-free fd look-up 2005-09-09 13:57:55 -07:00
tty_ioctl.c
vc_screen.c
viocons.c
viotape.c
vme_scc.c
vr41xx_giu.c
vr41xx_rtc.c
vt.c [PATCH] console: Fix buffer copy on vc resize 2005-09-09 13:58:00 -07:00
vt_ioctl.c