* Re: xlock on DEC OSF1
1993-09-16 18:35 xlock on DEC OSF1 Victor J. Martinez x6463
@ 1993-09-17 11:06 ` Klaus Moeller
0 siblings, 0 replies; 2+ messages in thread
From: Klaus Moeller @ 1993-09-17 11:06 UTC (permalink / raw)
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 /
^ permalink raw reply [flat|nested] 2+ messages in thread