summaryrefslogtreecommitdiff
path: root/meme/gui.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2015-03-14 11:45:53 (GMT)
committerWerner Almesberger <werner@almesberger.net>2015-03-14 11:45:53 (GMT)
commit06474f30bc0090c93a592a1cd35f5b1c4271d68e (patch)
treef44050c7159e3e7c69b93637d7de7e129c877b33 /meme/gui.c
parentbd8e92ef3dc4ab4991b8108084086a3022c898e4 (diff)
downloadmisc-06474f30bc0090c93a592a1cd35f5b1c4271d68e.zip
misc-06474f30bc0090c93a592a1cd35f5b1c4271d68e.tar.gz
misc-06474f30bc0090c93a592a1cd35f5b1c4271d68e.tar.bz2
meme/gui.c (lineto): only alpha-blend the overlay when displaying mesh
Diffstat (limited to 'meme/gui.c')
-rw-r--r--meme/gui.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/meme/gui.c b/meme/gui.c
index 758d649..c518755 100644
--- a/meme/gui.c
+++ b/meme/gui.c
@@ -37,16 +37,15 @@
#define MARK_WIDTH 2
#define MARK_LEN 20
-#define OVERLAY_WIDTH 4
-
-#define EDGE_RGBA 0x000000ff
-#define CURSOR_RGBA 0xff202080
-#define PROFILE_RGBA 0x2020ffff
-#define MARK_A_RGBA 0x00ff00ff
-#define MARK_B_RGBA 0x3030ffff
-#define CONTRAST_RGBA 0xffe080ff
-#define EQUAL_RGBA 0xf080ffff
-#define OVERLAY_RGBA 0xffc01060
+#define EDGE_RGBA 0x000000ff
+#define CURSOR_RGBA 0xff202080
+#define PROFILE_RGBA 0x2020ffff
+#define MARK_A_RGBA 0x00ff00ff
+#define MARK_B_RGBA 0x3030ffff
+#define CONTRAST_RGBA 0xffe080ff
+#define EQUAL_RGBA 0xf080ffff
+#define OVERLAY_MIX_RGBA 0xffc01060
+#define OVERLAY_ALONE_RGBA 0xffc010ff
#define DEPTH_RANGE 0xc0
#define DEPTH_OFFSET 0x30
@@ -906,7 +905,7 @@ static void lineto(void *user, int x, int y)
ok = coord(x, y, &to_x, &to_y);
if (ovl_ok >= 0 && ok >= 0 && (ovl_ok || ok))
aalineColor(s, ovl_x, ovl_y, to_x, to_y,
- OVERLAY_RGBA);
+ show_mesh ? OVERLAY_MIX_RGBA : OVERLAY_ALONE_RGBA);
#if 0
/*
* Something's wrong with thickLineColor. It places the lines with a