summaryrefslogtreecommitdiff
path: root/extra/xfig/xfig-fix_dash_list_for_different_styles.patch
blob: 7c5aaa94fa40a41457a6e30bba9395fd7a4ff02f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- xfig.3.2.5c/w_drawprim.c	2012-10-17 00:14:09.000000000 +0200
+++ xfig.3.2.5c/w_drawprim.c	2013-11-29 02:45:36.950448714 +0100
@@ -1292,14 +1292,23 @@ void set_fill_gc(int fill_style, int op,
 }
 
 
-static unsigned char dash_list[16][2] = {{255, 255}, {255, 255},
-					{255, 255}, {255, 255},
-					{255, 255}, {255, 255},
-					{255, 255}, {255, 255},
-					{255, 255}, {255, 255},
-					{255, 255}, {255, 255},
-					{255, 255}, {255, 255},
-					{255, 255}, {255, 255}};
+static unsigned char dash_list[16][8] = {
+		    {255, 255, 255, 255, 255, 255, 255, 255},
+		    {255, 255, 255, 255, 255, 255, 255, 255},
+		    {255, 255, 255, 255, 255, 255, 255, 255},
+		    {255, 255, 255, 255, 255, 255, 255, 255},
+		    {255, 255, 255, 255, 255, 255, 255, 255},
+		    {255, 255, 255, 255, 255, 255, 255, 255},
+		    {255, 255, 255, 255, 255, 255, 255, 255},
+		    {255, 255, 255, 255, 255, 255, 255, 255},
+		    {255, 255, 255, 255, 255, 255, 255, 255},
+		    {255, 255, 255, 255, 255, 255, 255, 255},
+		    {255, 255, 255, 255, 255, 255, 255, 255},
+		    {255, 255, 255, 255, 255, 255, 255, 255},
+		    {255, 255, 255, 255, 255, 255, 255, 255},
+		    {255, 255, 255, 255, 255, 255, 255, 255},
+		    {255, 255, 255, 255, 255, 255, 255, 255},
+		    {255, 255, 255, 255, 255, 255, 255, 255}};
 
 static int join_styles[3] = { JoinMiter, JoinRound, JoinBevel };
 static int cap_styles[3] = { CapButt, CapRound, CapProjecting };