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