Path: blob/main/comms/acfax/files/patch-acfax.c
16461 views
--- acfax.c.orig 1998-10-06 21:32:35 UTC1+++ acfax.c2@@ -108,7 +108,7 @@ struct prginfo {3String sizedesc;4} prg_info;56-Display *dpy; /* the X-Display to use */7+extern Display *dpy; /* the X-Display to use */8Screen *scr; /* screen of the display */9Pixmap cpxmap; /* The "backing store" for the canvas-widget */10GC cgc; /* GC for XPutImage from horimage/verimage to cpxmap */11@@ -739,7 +739,7 @@ void quit_cb(Widget w, XtPointer client_data, XtPointe12exit(0);13}1415-void main(int argc, char **argv)16+int main(int argc, char **argv)17{18int i;19Pixel respix[20];20@@ -795,7 +795,7 @@ void main(int argc, char **argv)21mode_notify = op_changed;22/* that's a hard one, but should set up all things right.... */23XtVaGetValues(canvas, XtNwidth, &wid, XtNheight, &hei, NULL);24- setup_fax(120, 288, (FAX_CNOR | FAX_CUNFL | FAX_CROT0 |25+ setup_fax(120, 576, (FAX_CNOR | FAX_CUNFL | FAX_CROT0 |26FAX_LEF2RIG | FAX_TOP2BOT | FAX_HOR | FAX_PBLK | FAX_GRAY),27toplevel, (unsigned)wid, (unsigned)hei, 500, (MOD_FM | FIL_MIDL));28aptstart = 300;293031