# To subscribers of the xforms list from Luis Balona <lab@maia.saao.ac.za> :
Quoting Steve Lamont <spl@ncmir.ucsd.edu>:
> My favorite trick in using a Canvas is to create a Pixmap and use the
> Xlib function XSetBackgroundPixmap() to paste the Pixmap of the image
> onto the background, then let the X server handle the refresh.
raphics to be drawn completely.
>
I guess that should read "XsetWindowBackgroundPixmap(). I tried this, but got a
uniform blue display (no image). However, I have solved the problem. All I
needed to do is to enable double buffering:
image->double_buffer = 1 ;
Now I get instantaneous refresh for expose events.
Many thanks Steve!
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://world.std.com/~xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/
This archive was generated by hypermail 2b29 : Sat Feb 17 2001 - 22:48:40 EST