Re: Pixmaps are crashing?!

Steve Lamont (spl@szechuan.ucsd.edu)
Mon, 24 Feb 97 05:33:43 PST

To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> Ok ... I'll try this. A question 'tho ... what do I use for the
> Pixmap *mask parameter of fl_set_pixmap_pixmap()? I'm assuming I need to
> use the fl_create_from_pixmapdata() routine also. What do I use for the
> int *hotx and int *hoty parameters? The manual I have doesn't say what
> they are for.

You can use 0 if you're not clipping (which I'd guess uses the XShape
extension???). The *hotx and *hoty are hot spots used by pixmap
cursors. Just ignore those return values and the shape_mask in this
case.

> Hmm ... I'm using XFree86 v3.2 on Linux (S3 Trio server), which
> is, as you may know, X11R6. I'm sad to say that I've been experiencing
> some other problems with this version of XFree86 ... so it's kind of hard
> to tell if my programming problem is with XForms or with the server.

A programming problem should never crash an X server, IMHO. Of
course, "should" is the operative word here. :-)

> And I'd really hate to reduce the number of pixmaps. It's an
> animation of the earth rotating on it's axis. (I used xearth to generate
> the pixmaps ... I had it render the earth as how it would look at each
> hour). It looks pretty cool actually ... if it weren't for the damn
> crashing, it'd be perfect :-)! Reducing the pixmaps would make the
> animation choppy.

Another thing you could do is to create a Canvas object (just a plain
canvas, not a GL or some other specialized canvas) and set the
background pixmap attribute. I do this kind of thing all the time and
it works fine with no crashes.

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/xforms-archive/