summaryrefslogtreecommitdiff
path: root/graphics/xfig/files/patch-d_text.c
blob: d22dc7e56a45ff307cb81706f53362f2d776de29 (plain) (blame)
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
--- d_text.c.orig	Tue Jul 26 09:39:58 2005
+++ d_text.c
@@ -112,7 +112,7 @@
 static void	move_text(int dir, unsigned char c, float div);
 static void	reload_compoundfont(F_compound *compounds);
 static int	prefix_length(char *string, int where_p);
-static void	initialize_char_handler(Window w, int (*cr) (/* ??? */), int bx, int by);
+static void	initialize_char_handler(Window w, void (*cr) (/* ??? */), int bx, int by);
 static void	terminate_char_handler(void);
 static void	turn_on_blinking_cursor(void (*draw_cursor) (/* ??? */), void (*erase_cursor) (/* ??? */), int x, int y, long unsigned int msec);
 static void	turn_off_blinking_cursor(void);
@@ -336,7 +336,7 @@
     set_mousefun("new text", "finish text", "cancel", "", "paste text", "");
     draw_mousefun_kbd();
     draw_mousefun_canvas();
-    canvas_kbd_proc = char_handler;
+    canvas_kbd_proc = (void (*)())char_handler;
     canvas_middlebut_proc = finish_text_input;
     canvas_leftbut_proc = finish_n_start;
     canvas_rightbut_proc = cancel_text_input;
@@ -463,7 +463,7 @@
     set_mousefun("new text", "finish text", "cancel", "", "paste text", "");
     draw_mousefun_kbd();
     draw_mousefun_canvas();
-    canvas_kbd_proc = char_handler;
+    canvas_kbd_proc = (void (*)())char_handler;
     canvas_middlebut_proc = finish_text_input;
     canvas_leftbut_proc = finish_n_start;
     canvas_rightbut_proc = cancel_text_input;
@@ -782,7 +782,7 @@
 static int	cbase_x, cbase_y;
 static float	rbase_x, rbase_y, rcur_x, rcur_y;
 
-static int	(*cr_proc) ();
+static void	(*cr_proc) ();
 
 static void
 draw_cursor(int x, int y)
@@ -794,7 +794,7 @@
 }
 
 static void
-initialize_char_handler(Window w, int (*cr) (/* ??? */), int bx, int by)
+initialize_char_handler(Window w, void (*cr) (/* ??? */), int bx, int by)
 {
     pw = w;
     cr_proc = cr;