tsm: screen: fix cleaning buffers on resize
authorDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 27 Sep 2012 10:26:30 +0000 (12:26 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 27 Sep 2012 10:26:30 +0000 (12:26 +0200)
commit2c328b2300ca0a83ffc36c43d95131a88008e1b3
tree3ceb39169e60e50c7c374e626332d94fded145ad
parentfd3816ec4d89406bb830313411edc0ed125eb24a
tsm: screen: fix cleaning buffers on resize

There is some nasty bug where we do not correctly clean buffers when
resizing. So we now clear the whole offscreen region on resize to go sure
everything is clean.

Note that cells can pretty much move everywhere during their
offscreen-life so this is a quite sophisticated task to keep track which
cells are clean and which not. Therefore, simply clean all of them when
taking them on-screen.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/tsm_screen.c