diff options
author | epoch <epoch@enzo.thebackupbox.net> | 2021-01-05 09:40:08 -0600 |
---|---|---|
committer | epoch <epoch@enzo.thebackupbox.net> | 2021-01-05 09:40:08 -0600 |
commit | 028f2d5d467582afc666c761718940fb6b722916 (patch) | |
tree | c10fa65c10898d8f0bf9c8ebfe85c9baef8e904c /src/graphics_c2.c | |
parent | 515132d67b7839ef769ceb66489a65dd6b2d689f (diff) | |
download | hackvr-028f2d5d467582afc666c761718940fb6b722916.tar.gz hackvr-028f2d5d467582afc666c761718940fb6b722916.zip |
put version into a global and use it to not do mouseover effect for svg output
Diffstat (limited to 'src/graphics_c2.c')
-rw-r--r-- | src/graphics_c2.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |