Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* xlock on DEC OSF1
@ 1993-09-16 18:35 Victor J. Martinez x6463
  1993-09-17 11:06 ` Klaus Moeller
  0 siblings, 1 reply; 2+ messages in thread
From: Victor J. Martinez x6463 @ 1993-09-16 18:35 UTC (permalink / raw)


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.

--
~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~
` Each of us - A cell of awareness               //   | Victor J. Martinez    ' 
` Imperfect and incomplete -                   \X/    | vic@fajita.saic.com   ' 
` Genetic blends - With uncertain ends                |                       ' 
` On a fortune hunt - That's far to fleet. Neil Peart | (This space for rent) ' 
~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~"~


^ permalink raw reply	[flat|nested] 2+ messages in thread

* 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

end of thread, other threads:[~1993-09-17 11:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-09-16 18:35 xlock on DEC OSF1 Victor J. Martinez x6463
1993-09-17 11:06 ` Klaus Moeller

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