diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-10-23 16:12:09 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2013-10-23 16:12:09 +0200 |
commit | 0219fa1c29d8b0901fc314ef9f48a215f27cdb08 (patch) | |
tree | 69f69170a7c3326d8c4af55b9790a860533d0737 | |
parent | a0118b614673a6a0e00a95d28568638cb2cf5f43 (diff) |
render: adjust to new TSM ageing API
Change our TSM calls to the new TSM ageing API. We don't make use of it,
yet. We will support that in the future (if required).
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
-rw-r--r-- | src/wlt_render.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/wlt_render.c b/src/wlt_render.c index be2cd0d..4702e1c 100644 --- a/src/wlt_render.c +++ b/src/wlt_render.c @@ -235,7 +235,7 @@ static int wlt_renderer_draw_cell(struct tsm_screen *screen, uint32_t id, unsigned int cwidth, unsigned int posx, unsigned int posy, const struct tsm_screen_attr *attr, - void *data) + tsm_age_t age, void *data) { const struct wlt_draw_ctx *ctx = data; uint8_t fr, fg, fb, br, bg, bb; @@ -289,8 +289,7 @@ void wlt_renderer_draw(const struct wlt_draw_ctx *ctx) * cairo to blit it into the gtk buffer. This way we get two mem-writes * but at least it's fast enough to render a whole screen. */ - tsm_screen_draw(ctx->screen, NULL, wlt_renderer_draw_cell, NULL, - (void*)ctx); + tsm_screen_draw(ctx->screen, wlt_renderer_draw_cell, (void*)ctx); /* TODO: mark surface as dirty so cairo notices that */ cairo_set_source_surface(ctx->cr, rend->surface, 0, 0); |