From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,361c94f9ca65bd8e X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,361c94f9ca65bd8e X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-09-17 04:21:34 PST Xref: gmd.de comp.unix.osf.osf1:1049 comp.unix.osf.misc:487 Newsgroups: comp.unix.osf.osf1,comp.unix.osf.misc Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!math.fu-berlin.de!uniol!Klaus.Moeller From: Klaus.Moeller@arbi.informatik.uni-oldenburg.de (Klaus Moeller) Subject: Re: xlock on DEC OSF1 Organization: University of Oldenburg, Germany Date: Fri, 17 Sep 1993 11:06:25 GMT Message-ID: <1993Sep17.110858.25415@arbi.Informatik.Uni-Oldenburg.DE> References: <1993Sep16.183522.16913@ast.saic.com> Sender: news@arbi.Informatik.Uni-Oldenburg.DE vic@fajita.saic.com (Victor J. Martinez x6463) writes: >Has anyone had any luck compiling xlock-2.3 on DEC OSF1. >I have compiled a usable version, but I could not >get life and image screen modes to use the bitmaps. It cores on >the calls to XPutImage in both life.c and image.c files. We've used this patch, but I don't know if it works with your version. ------snip-------- ------------------------------------------------- diff -c -r alt/image.c new/image.c *** alt/image.c Fri Jul 2 13:43:08 1993 --- new/image.c Sat Jul 3 14:38:02 1993 *************** *** 91,96 **** --- 91,98 ---- logo.height = sunlogo_height; logo.bytes_per_line = (sunlogo_width + 7) / 8; + logo.bits_per_pixel = 1; + XGetWindowAttributes(dsp, win, &xgwa); ip->width = xgwa.width; ip->height = xgwa.height; diff -c -r alt/life.c new/life.c *** alt/life.c Fri Jul 2 13:43:08 1993 --- new/life.c Wed Jun 30 18:57:37 1993 *************** *** 393,399 **** static void ! kill(loc) unsigned char *loc; { lifestruct *lp = &lifes[screen]; --- 393,399 ---- static void ! mykill(loc) unsigned char *loc; { lifestruct *lp = &lifes[screen]; *************** *** 503,508 **** --- 503,509 ---- logo.width = icon_width; logo.height = icon_height; logo.bytes_per_line = (icon_width + 7) / 8; + logo.bits_per_pixel = 1; } XGetWindowAttributes(dsp, win, &xgwa); lp->width = xgwa.width; *************** *** 572,578 **** break; case DEATH: if (*(loc + 1) & RT) { ! kill(loc); erasecell(win, row, col); } break; --- 573,579 ---- break; case DEATH: if (*(loc + 1) & RT) { ! mykill(loc); erasecell(win, row, col); } break; -------------------------------------------------------- -- / Klaus Moeller, Leiteweg 2, 26384 Wilhelmshaven, Germany \ < Klaus.Moeller@Informatik.Uni-Oldenburg.DE 078326@DOLUNI1.BITNET > \ security is an exercise in applied paranoia /