summaryrefslogtreecommitdiff
path: root/gui/render.c
diff options
context:
space:
mode:
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);
}