summaryrefslogtreecommitdiff
path: root/gui/render.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-19 21:25:48 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-19 21:25:48 -0300
commited5d290d4dd7a1409a5cbb2997b3c9aedc7616f0 (patch)
tree7f2ffc55eabada071e2e9e856bf9de7aaa59a783 /gui/render.c
parentde0821ea0cfad217aff0aa8e0ef4a035e19192ff (diff)
downloadeeshow-ed5d290d4dd7a1409a5cbb2997b3c9aedc7616f0.tar.gz
eeshow-ed5d290d4dd7a1409a5cbb2997b3c9aedc7616f0.tar.bz2
eeshow-ed5d290d4dd7a1409a5cbb2997b3c9aedc7616f0.zip
eeshow/gfx/diff.c (diff_to_canvas): draw caller-supplied areas
These are for future highlighting. WIP.
Diffstat (limited to 'gui/render.c')
-rw-r--r--gui/render.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/render.c b/gui/render.c
index 5d217e2..3fa8fa0 100644
--- a/gui/render.c
+++ b/gui/render.c
@@ -60,6 +60,7 @@ static inline int cd(int x, float scale)
return x * scale;
}
+
static inline int cx(int x, int xo, float scale)
{
return xo + x * scale;
@@ -109,7 +110,7 @@ static void hack(const struct gui_ctx *ctx, cairo_t *cr)
ctx->old_hist->sheets, ctx->new_hist->sheets, ctx->curr_sheet);
diff_to_canvas(cr, ctx->x, ctx->y, 1.0 / (1 << ctx->zoom),
- old->gfx_ctx, new->gfx_ctx);
+ old->gfx_ctx, new->gfx_ctx, NULL);
}