From 028f2d5d467582afc666c761718940fb6b722916 Mon Sep 17 00:00:00 2001 From: epoch Date: Tue, 5 Jan 2021 09:40:08 -0600 Subject: put version into a global and use it to not do mouseover effect for svg output --- src/graphics_c2.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/graphics_c2.c') diff --git a/src/graphics_c2.c b/src/graphics_c2.c index 65d139f..c4c9193 100644 --- a/src/graphics_c2.c +++ b/src/graphics_c2.c @@ -33,6 +33,9 @@ void draw_c2_shape(c2_s_t s) { ss.p[i]=c2_to_cs(s.p[i]); } draw_cs_shape(ss); + if(!strcmp(global.version,"svg")) { + return;//disable mouseover for svg + } // if(cn_PnPoly(gra_global.mouse,s.p,s.len+(s.len==1))) {//if the mouse is inside the shape, we're going to draw a different outline. if(epoch_PnPoly(gra_global.mouse,s.p,s.len+(s.len==1))) {//if the mouse is inside the shape, we're going to draw a different outline. set_ansi_color(7); -- cgit v1.2.3