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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user