summaryrefslogtreecommitdiff
path: root/x11/wxGTK24/patches/patch-ai
blob: 695aab3aeb6c80ec7b797eeacd4f6cf0189e0858 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
$NetBSD: patch-ai,v 1.1 2006/06/19 21:16:19 joerg Exp $

--- src/generic/dcpsg.cpp.orig	2006-06-19 20:01:50.000000000 +0000
+++ src/generic/dcpsg.cpp
@@ -1146,8 +1146,13 @@ struct _OutlineInfo {
   FILE *file;
 };
 
+#if (FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 2) || FREETYPE_MAJOR >= 2
+static int paps_move_to( const FT_Vector* to,
+			 void *user_data)
+#else
 static int paps_move_to( FT_Vector* to,
 			 void *user_data)
+#endif
 {
   OutlineInfo *outline_info = (OutlineInfo*)user_data;
   fprintf(outline_info->file, "%d %d moveto\n",
@@ -1156,8 +1161,13 @@ static int paps_move_to( FT_Vector* to,
   return 0;
 }
 
+#if (FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 2) || FREETYPE_MAJOR >= 2
+static int paps_line_to( const FT_Vector*  to,
+			 void *user_data)
+#else
 static int paps_line_to( FT_Vector*  to,
 			 void *user_data)
+#endif
 {
   OutlineInfo *outline_info = (OutlineInfo*)user_data;
   fprintf(outline_info->file, "%d %d lineto\n",
@@ -1166,9 +1176,15 @@ static int paps_line_to( FT_Vector*  to,
   return 0;
 }
 
+#if (FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 2) || FREETYPE_MAJOR >= 2
+static int paps_conic_to( const FT_Vector*  control,
+			  const FT_Vector*  to,
+			  void *user_data)
+#else
 static int paps_conic_to( FT_Vector*  control,
 			  FT_Vector*  to,
 			  void *user_data)
+#endif
 {
   OutlineInfo *outline_info = (OutlineInfo*)user_data;
   fprintf(outline_info->file, "%d %d %d %d conicto\n",
@@ -1179,10 +1195,17 @@ static int paps_conic_to( FT_Vector*  co
   return 0;
 }
 
+#if (FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 2) || FREETYPE_MAJOR >= 2
+static int paps_cubic_to( const FT_Vector*  control1,
+			  const FT_Vector*  control2,
+			  const FT_Vector*  to,
+			  void *user_data)
+#else
 static int paps_cubic_to( FT_Vector*  control1,
 			  FT_Vector*  control2,
 			  FT_Vector*  to,
 			  void *user_data)
+#endif
 {
   OutlineInfo *outline_info = (OutlineInfo*)user_data;
   fprintf(outline_info->file,