diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2012-08-10 11:42:00 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@googlemail.com> | 2012-08-10 11:42:00 +0200 |
commit | ac3fa529dccaa95e4e1d50535ec54e4717f8f61d (patch) | |
tree | 5a96a14d835df4e932c05ec32af25f3ee541d42c /src/terminal.c | |
parent | 4ee5c05b57e8b3bb0a8b343dcc726c97131c8194 (diff) |
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 <dh.herrmann@googlemail.com>
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 4 |
1 files changed, 1 insertions, 3 deletions
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); |