From 0219fa1c29d8b0901fc314ef9f48a215f27cdb08 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Wed, 23 Oct 2013 16:12:09 +0200 Subject: 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 --- src/wlt_render.c | 5 ++--- 1 file 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); -- cgit v1.2.3