kernel-hacking-2024-linux-s.../drivers
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
..
acorn
acpi [PATCH] Fix CONFIG_ACPI_BLACKLIST_YEAR 2005-09-09 10:45:35 -07:00
atm
base [SCSI] Re-do "final klist fixes" 2005-09-07 18:44:33 -07:00
block [PATCH] deadline: clean up question mark operator 2005-09-09 13:57:33 -07:00
bluetooth
cdrom Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-for-linus-2.6 2005-09-07 17:31:27 -07:00
char [PATCH] console: Fix buffer copy on vc resize 2005-09-09 13:58:00 -07:00
cpufreq
crypto
dio
eisa
fc4
firmware [PATCH] dcdbas: add Dell Systems Management Base Driver with sysfs support 2005-09-07 16:57:27 -07:00
hwmon
i2c Merge master.kernel.org:/home/rmk/linux-2.6-i2c manually 2005-09-08 15:43:09 -07:00
ide [PATCH] pcmcia: more IDs for ide_cs 2005-09-09 13:57:48 -07:00
ieee1394 [PATCH] provide MODALIAS= enviroment variable to autoload ieee1394 modules via udev 2005-09-07 16:57:41 -07:00
infiniband [PATCH] PCI: remove CONFIG_PCI_NAMES 2005-09-08 14:57:23 -07:00
input [PATCH] Input: Add a new switch event type 2005-09-07 16:57:54 -07:00
isdn [PATCH] -Wundef fixes (hisax) 2005-09-07 17:17:33 -07:00
macintosh
mca
md [PATCH] kill bio->bi_set 2005-09-07 16:57:20 -07:00
media [PATCH] v4l: tveeprom improved to support newer Hauppage cards 2005-09-09 13:57:54 -07:00
message Merge by hand (conflicts in sd.c) 2005-09-06 17:52:54 -05:00
mfd
misc [SERIAL] Update ibmasm driver for death of register_serial&co 2005-09-07 21:37:00 +01:00
mmc [MMC] Add mmc_detect_change() delay support for PXAMCI driver 2005-09-08 22:48:16 +01:00
mtd [PATCH] detect soft lockups 2005-09-07 16:57:17 -07:00
net [PATCH] cs89x0: add netpoll support 2005-09-09 13:57:32 -07:00
nubus
oprofile
parisc
parport [PATCH] PCI: remove pci_find_device from parport_pc.c 2005-09-08 14:57:25 -07:00
pci [PATCH] yenta: share code with PCI core 2005-09-09 13:57:47 -07:00
pcmcia [PATCH] pcmcia: add pcmcia to IRQ information 2005-09-09 13:57:48 -07:00
pnp Merge linux-2.6 with linux-acpi-2.6 2005-09-08 01:45:47 -04:00
s390 [PATCH] s390: claw driver fixes 2005-09-06 22:15:20 -04:00
sbus
scsi [libata] minor fixes 2005-09-08 23:07:29 -04:00
serial [PATCH] txx9 serial update 2005-09-09 13:57:27 -07:00
sh
sn
tc
telephony
usb Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6 2005-09-08 17:21:02 -07:00
video [PATCH] fbcon: Saner 16-color to 4-color conversion 2005-09-09 13:58:00 -07:00
w1 [PATCH] w1_ds2433: Added crc16 protection and read caching. 2005-09-08 14:41:27 -07:00
zorro
Kconfig
Makefile