[2582] in Athena Bugs
Cursor fix for mpel which is similar to previous apa16 fix.
daemon@ATHENA.MIT.EDU (John D. Kubiatowicz)
Mon Jul 17 17:58:52 1989
To: bugs@ATHENA.MIT.EDU
Cc: probe@ATHENA.MIT.EDU, basch@ATHENA.MIT.EDU
Date: Mon, 17 Jul 89 17:58:24 EDT
From: John D. Kubiatowicz <kubitron@ATHENA.MIT.EDU>
Here is the corresponding fix for the mpel code. Basically, if the
cursor is off the screen, don't bother drawing the cursor.
--KUBI--
*** /tmp/,RCSt1021657 Mon Jul 17 17:54:28 1989
--- mpelCursor.c Mon Jul 17 17:13:38 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 17:11:18 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 17:11:18 kubitron Exp $" ;
#endif
/*
***************
*** 96,101 ****
--- 96,103 ----
if ( ibmScreenState( screen_index ) != SCREEN_ACTIVE )
return ;
+ if (x >= MPEL_WIDTH || (x + curCursor->width) < 0)
+ return; /* off the screen, don't bother */
curCursor = ibmCurrentCursor( screen_index ) ;
fSrc = (unsigned short int *) forePtrn ;
bSrc = (unsigned short int *) backPtrn ;