Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Background setting

1 view
Skip to first unread message

David Bird

unread,
Jun 2, 1995, 3:00:00 AM6/2/95
to
Does anyone know how to go about setting the background to a pixmap?
I tried to set the window attributes and to use XSetWindowBackgroundPixmap,
but both gave BadMatch error (because wrong depth?) for both of the attempts
just mentioned, I read the bitmap file using XReadBitmapFile. I also tried
to simply include the bitmap file in the program and tried to use
XCreatePixmapFromBitmapData... this did not give error, but also did not
display anything for the background... It is NOT working, or is PEX drawing
over the pixmap when redrawing, (I should mention that the system I am
using does not support rendering to pixmap, if it makes a difference)

Please cc any responce to my mail address... thanks

--
_--_
David Bird / -)
___/___|___
__________-----=~~///| ||||~~~==-----___________
db...@pic.ucla.edu http://pong.igpp.ucla.edu/~dbird
----------------------------------------------------


Karl Schultz

unread,
Jun 5, 1995, 3:00:00 AM6/5/95
to db...@pic.ucla.edu
In article <3qm10r$r...@saba.info.ucla.edu>, db...@pic.ucla.edu (David Bird) writes:
> Does anyone know how to go about setting the background to a pixmap?
> I tried to set the window attributes and to use XSetWindowBackgroundPixmap,
> but both gave BadMatch error (because wrong depth?) for both of the attempts
> just mentioned, I read the bitmap file using XReadBitmapFile. I also tried
> to simply include the bitmap file in the program and tried to use
> XCreatePixmapFromBitmapData... this did not give error, but also did not
> display anything for the background... It is NOT working, or is PEX drawing
> over the pixmap when redrawing, (I should mention that the system I am
> using does not support rendering to pixmap, if it makes a difference)

I suspect that PEX is clearing the window. By default, the PEX Renderer
will clear the Image buffer (your window) when you call Begin Rendering.
Turn off the clearI bit when issuing PEXCreateRenderer or use PEXChangeRenderer
to turn off the clearI bit.

0 new messages