summaryrefslogtreecommitdiffstats
path: root/drivers/video/aty/atyfb_base.c
diff options
context:
space:
mode:
authorAntonino A. Daplas <adaplas@gmail.com>2005-09-09 13:04:39 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-09 13:58:00 -0700
commit3b41dc1a3c7839a765ffa560a5ae07aa5d253cc8 (patch)
tree6cee743cc501593be36191151d391ad5ebfeac5f /drivers/video/aty/atyfb_base.c
parent2cc38ed13f1b0f9d80a2d0acc2916af94922f27e (diff)
downloadop-kernel-dev-3b41dc1a3c7839a765ffa560a5ae07aa5d253cc8.zip
op-kernel-dev-3b41dc1a3c7839a765ffa560a5ae07aa5d253cc8.tar.gz
[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>
Diffstat (limited to 'drivers/video/aty/atyfb_base.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud