Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/comms/acfax/files/patch-fax_funcs.c
16461 views
1
--- fax_funcs.c.orig 1998-10-11 16:34:37 UTC
2
+++ fax_funcs.c
3
@@ -37,6 +37,8 @@
4
#include "widgets.h"
5
#include "fax_funcs.h"
6
7
+#define PI M_PI
8
+
9
/* some variables that are allowed to be global */
10
int lpm; /* lines per minute */
11
int ixoc; /* number of pixels of one scan-line / PI */
12
@@ -96,7 +98,7 @@ char *mod_end; /* pointer to first byte behind end of
13
FILE *fsfile; /* file pointer of current save-file */
14
char faxsavename[256]; /* current name of save-file */
15
char *saveline; /* storage for 1 image-line in save_func */
16
-XtAppContext mainapp; /* main app.context (needed for interv.timer) */
17
+extern XtAppContext mainapp; /* main app.context (needed for interv.timer) */
18
XtIntervalId chstime; /* for the repetitive called background function */
19
XtInputId dspxid = 0; /* for the background function when using select() */
20
XEvent event; /* event needed to form the XtAppMainLoop */
21
@@ -117,7 +119,7 @@ void init_fax(void)
22
if (fax_inited) return;
23
fprintf(stderr, "initializing FAX procedures and alloc'ing core-space\n");
24
lpm = 120;
25
- ixoc = 288;
26
+ ixoc = 576;
27
devi = 400;
28
mod_mode = MOD_FM | FIL_MIDL;
29
dmaxval = 63;
30
31