summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-23 17:44:00 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-23 17:44:00 -0300
commit1ec2c88d8368174f27358a0084cad5b2bd3b8607 (patch)
tree04ada9ebeadebe6f54913fe2d6b92f60d626464b /gui
parente5d92c2f94c319c6906efc59de4c3acfe070b061 (diff)
downloadeeshow-1ec2c88d8368174f27358a0084cad5b2bd3b8607.tar.gz
eeshow-1ec2c88d8368174f27358a0084cad5b2bd3b8607.tar.bz2
eeshow-1ec2c88d8368174f27358a0084cad5b2bd3b8607.zip
gui/render.c: support showing pin types in delta mode
Diffstat (limited to 'gui')
-rw-r--r--gui/render.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gui/render.c b/gui/render.c
index 2e2aa77..5396f63 100644
--- a/gui/render.c
+++ b/gui/render.c
@@ -204,6 +204,14 @@ static gboolean on_draw_event(GtkWidget *widget, cairo_t *cr,
free_areas(&areas);
/* @@@ fix geometry later */
+ if (show_extra) {
+ cro_canvas_draw(ctx->delta_ab.gfx_ctx_extra, cr,
+ x, y, f);
+ cro_canvas_draw(ctx->delta_a.gfx_ctx_extra, cr,
+ x, y, f);
+ cro_canvas_draw(ctx->delta_b.gfx_ctx_extra, cr,
+ x, y, f);
+ }
cro_canvas_draw(ctx->delta_ab.gfx_ctx, cr, x, y, f);
cro_canvas_draw(ctx->delta_a.gfx_ctx, cr, x, y, f);
cro_canvas_draw(ctx->delta_b.gfx_ctx, cr, x, y, f);
@@ -283,6 +291,10 @@ void render_delta(struct gui_ctx *ctx)
cro_color_override(ctx->delta_b.gfx_ctx, COLOR_RED);
cro_color_override(ctx->delta_a.gfx_ctx, COLOR_GREEN2);
+ cro_color_override(ctx->delta_ab.gfx_ctx_extra, COLOR_LIGHT_GREY);
+ cro_color_override(ctx->delta_b.gfx_ctx_extra, COLOR_RED);
+ cro_color_override(ctx->delta_a.gfx_ctx_extra, COLOR_GREEN2);
+
// @@@ clean up when leaving sheet
#endif