[2583] in Athena Bugs

home help back first fref pref prev next nref lref last post

Oops on previous mpel message

daemon@ATHENA.MIT.EDU (John D. Kubiatowicz)
Mon Jul 17 18:28:48 1989

To: bugs@ATHENA.MIT.EDU
Cc: probe@ATHENA.MIT.EDU, epeisach@ATHENA.MIT.EDU
Date: Mon, 17 Jul 89 18:28:14 EDT
From: John D. Kubiatowicz <kubitron@ATHENA.MIT.EDU>
Yeah, well... Here is what I should have sent:

--KUBI--

*** /tmp/,RCSt1021935	Mon Jul 17 18:26:57 1989
--- mpelCursor.c	Mon Jul 17 18:26:00 1989
***************
*** 21,31 ****
  
  ******************************************************************/
  
! /* $Header: mpelCursor.c,v 1.1 89/07/17 16:37:31 kubitron Exp $ */
  /* $Source: /afs/athena.mit.edu/mit/plx/src/X11R3/server/ddx/ibm/mpel/RCS/mpelCursor.c,v $ */
  
  #ifndef lint
! static char *rcsid = "$Header: mpelCursor.c,v 1.1 89/07/17 16:37:31 kubitron Exp $" ;
  #endif
  
  /*
--- 21,31 ----
  
  ******************************************************************/
  
! /* $Header: mpelCursor.c,v 1.2 89/07/17 18:25:16 kubitron Exp $ */
  /* $Source: /afs/athena.mit.edu/mit/plx/src/X11R3/server/ddx/ibm/mpel/RCS/mpelCursor.c,v $ */
  
  #ifndef lint
! static char *rcsid = "$Header: mpelCursor.c,v 1.2 89/07/17 18:25:16 kubitron Exp $" ;
  #endif
  
  /*
***************
*** 97,102 ****
--- 97,104 ----
      if ( ibmScreenState( screen_index ) != SCREEN_ACTIVE )
  	return ;
      curCursor = ibmCurrentCursor( screen_index ) ;
+     if (x >= MPEL_WIDTH || (x + curCursor->width) < 0)
+ 	return;			/* off the screen, don't bother */
      fSrc = (unsigned short int *) forePtrn ;
      bSrc = (unsigned short int *) backPtrn ;
  

home help back first fref pref prev next nref lref last post