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