1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2025-04-21 12:27:27 +03:00

eeshow/gfx/diff.c (diff_to_canvas): draw caller-supplied areas

These are for future highlighting. WIP.
This commit is contained in:
Werner Almesberger
2016-08-19 21:25:48 -03:00
parent f244fa09c7
commit 6b901399ce
3 changed files with 22 additions and 12 deletions

View File

@@ -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);
}