wlt: terminal: do not clear terminal background
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 30 Sep 2012 21:50:12 +0000 (23:50 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 30 Sep 2012 21:50:12 +0000 (23:50 +0200)
We snap to terminal borders now so there is no need to clear the
background as we paint it during redraw, anyway.

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

index db5d562..44f3950 100644 (file)
@@ -170,18 +170,6 @@ static int draw_cell(struct tsm_screen *scr,
 static void widget_redraw(struct wlt_widget *widget, void *data)
 {
        struct wlt_terminal *term = data;
-       unsigned int i, j;
-       uint8_t *dst;
-       uint32_t *line;
-
-       /* black background */
-       dst = term->buffer.data;
-       for (i = 0; i < term->buffer.height; ++i) {
-               line = (uint32_t*)dst;
-               for (j = 0; j < term->buffer.width; ++j)
-                       line[j] = 0xff << 24;
-               dst += term->buffer.stride;
-       }
 
        tsm_screen_draw(term->scr, NULL, draw_cell, NULL, term);
 }