Steve Baker (sbaker++at++link.com)
Fri, 7 Aug 1998 08:21:14 -0500 (CDT)
> Does anyone know how to remove the Cursor in Performer
> application? Now I'm trying to do on
> /usr/share/Performer/src/pguide/libpf/C/simple.c, but I can't.
In X windows, it's easiest to define a completely transparent cursor
rather than actually get rid of it. The effect is the same in the end.
I use this:
void no_cursor ( pfPipeWindow *pw )
{
if ( pfGetPWinType(pw) & PFPWIN_TYPE_X )
{
char cursoffdata [ 16*16 ] ;
XColor xclr = { 0,0,0,0,0,0 } ;
Display *dsp = pfGetCurWSConnection () ;
memset ( cursoffdata, 0, 16*16 ) ;
Pixmap pix = XCreateBitmapFromData ( dsp,
RootWindow ( dsp, DefaultScreen ( dsp ) ), cursoffdata, 16, 16 ) ;
XDefineCursor ( dsp, pfGetPWinWSWindow ( pw ),
XCreatePixmapCursor ( dsp, pix, pix, &xclr, &xclr, 0, 0 ) ) ;
XFreePixmap ( dsp, pix ) ;
}
else
#ifdef IRISGL
cursoff () ;
#else
fprintf ( stderr,
"Sorry - can't disable cursor on non-X-Window pipes using OpenGL.\n" ) ;
#endif
}
Enjoy...
Steve Baker (817)619-2657 (Vox/Vox-Mail)
Raytheon Systems Inc. (817)619-4028 (Fax)
Work: SBaker++at++link.com http://www.hti.com
Home: SJBaker1++at++airmail.net http://web2.airmail.net/sjbaker1
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Tue Aug 11 1998 - 13:42:35 PDT