From 2496caaffaa1e7b80687cbc941824e2ae2d4c79a Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Sun, 30 Sep 2012 23:50:12 +0200 Subject: [PATCH] wlt: terminal: do not clear terminal background 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 --- src/wlt_terminal.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/wlt_terminal.c b/src/wlt_terminal.c index db5d562..44f3950 100644 --- a/src/wlt_terminal.c +++ b/src/wlt_terminal.c @@ -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); } -- 2.7.4