diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-10-23 16:11:28 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2013-10-23 16:11:28 +0200 |
commit | a0118b614673a6a0e00a95d28568638cb2cf5f43 (patch) | |
tree | c6459290735c34f53ec299a9f78ab4855933037c | |
parent | 9e901f72a6f05e7c98dc2cf46432017ed2d31d4a (diff) |
render: draw background correctly for wide-chars
If we have wide-chars, we need to draw the background as wide as the char.
It's unlikely that we have to draw background only for wide-chars, but
lets be safe and implement it correctly.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
-rw-r--r-- | src/wlt_render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wlt_render.c b/src/wlt_render.c index 40ccd68..be2cd0d 100644 --- a/src/wlt_render.c +++ b/src/wlt_render.c @@ -265,7 +265,7 @@ static int wlt_renderer_draw_cell(struct tsm_screen *screen, uint32_t id, /* !len means background-only */ if (!len) { - wlt_renderer_fill(ctx->rend, x, y, ctx->cell_width, + wlt_renderer_fill(ctx->rend, x, y, ctx->cell_width * cwidth, ctx->cell_height, br, bg, bb); return 0; } |