summaryrefslogtreecommitdiff
blob: fbe9800d21895f781d8af4b194e08236b7c74764 (plain)
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
Resolve build failure. Patch from Fedora.

Bug: https://bugs.gentoo.org/615836

diff -up aterm-1.0.1/src/main.c.orig aterm-1.0.1/src/main.c
--- aterm-1.0.1/src/main.c.orig	2011-02-19 09:12:01.000000000 +0200
+++ aterm-1.0.1/src/main.c	2011-02-19 09:25:02.000000000 +0200
@@ -2087,10 +2087,10 @@ main(int argc, char *argv[])
 #endif
 
 	ConnectX ( &Scr, 0 );
-    Xdisplay = dpy ;
-    Xscreen = Scr.screen ;
+       Xscreen = Scr.screen ;
 	asv = Scr.asv ;
 
+	Xdisplay = asv->dpy;
 	Xcmap = asv->colormap;
 	Xdepth = asv->visual_info.depth;
 	Xvisual = asv->visual_info.visual;
@@ -2125,7 +2125,6 @@ main(int argc, char *argv[])
 	XdisplayHeight = DisplayHeight (Xdisplay, Xscreen);
 
 #ifdef HAVE_AFTERIMAGE
-	dpy = Xdisplay ;
 	asv = create_asvisual (Xdisplay, Xscreen, Xdepth, NULL);
 	Xcmap = asv->colormap;
 	Xdepth = asv->visual_info.depth;