terminal: clear unused margins on each frame
authorDavid Herrmann <dh.herrmann@gmail.com>
Sat, 9 Mar 2013 12:47:00 +0000 (13:47 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sat, 9 Mar 2013 12:47:00 +0000 (13:47 +0100)
commit9f0bb1262d66fac1f2ca308bde470924e8c48328
treec0a937fa38607da9730fcecd9a3d7f66685dea7b
parent40f6811a072baedebad20fdd805ed091df899308
terminal: clear unused margins on each frame

If the terminal screen is smaller than the real screen, we never paint to
the margins. This doesn't hurt as long as we never resize the terminal.
The uterm layer clears all framebuffers during allocation.

However, uterm behavior may change and our terminal may get resized (eg.,
during hotplugging) so we really should clear all the margins.

We now clear them on every frame as it is a trivial task. However, if we
speed up rendering, we should probably set a "needs_clear" flag that
simply clears the framebuffer.

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