1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-04 23:29:42 +02:00

eeshow/gui/sheet.c (add_delta): show inverted greek delta when in delta mode

This commit is contained in:
Werner Almesberger 2016-08-20 09:30:38 -03:00
parent c06680e272
commit 1e13572283

View File

@ -198,7 +198,10 @@ static void add_delta(struct gui_ctx *ctx)
if (ctx->old_hist && ctx->diff_mode == diff_delta)
style.frame = RGBA(0, 0, 0, 1);
overlay_style(over, &style);
overlay_text(over, "Δ");
if (use_delta)
overlay_text(over, "∇");
else
overlay_text(over, "Δ");
}
@ -524,6 +527,7 @@ static void sheet_key(void *user, int x, int y, int keyval)
case GDK_KEY_a:
use_delta = !use_delta;
do_revision_overlays(ctx);
redraw(ctx);
break;