Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Klaus.Moeller@arbi.informatik.uni-oldenburg.de (Klaus Moeller)
Subject: Re: xlock on DEC OSF1
Date: Fri, 17 Sep 1993 11:06:25 GMT	[thread overview]
Message-ID: <1993Sep17.110858.25415@arbi.Informatik.Uni-Oldenburg.DE> (raw)
In-Reply-To: 1993Sep16.183522.16913@ast.saic.com

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                 /


      reply	other threads:[~1993-09-17 11:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-09-16 18:35 xlock on DEC OSF1 Victor J. Martinez x6463
1993-09-17 11:06 ` Klaus Moeller [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox