From ac3fa529dccaa95e4e1d50535ec54e4717f8f61d Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Fri, 10 Aug 2012 11:42:00 +0200 Subject: text: rework text renderer system This reworks the text renderer system to make it easier to write backends. We also allow returning errors during rendering now. Signed-off-by: David Herrmann --- src/terminal.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/terminal.c') diff --git a/src/terminal.c b/src/terminal.c index a135365..b0d41c1 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -184,9 +184,7 @@ static int add_display(struct kmscon_terminal *term, struct uterm_display *disp) goto err_font; } - kmscon_text_set_bgcolor(scr->txt, 0, 0, 0); - kmscon_text_set_font(scr->txt, scr->font); - kmscon_text_set_screen(scr->txt, scr->screen); + kmscon_text_set(scr->txt, scr->font, scr->screen); cols = kmscon_text_get_cols(scr->txt); rows = kmscon_text_get_rows(scr->txt); -- cgit v1.2.3