# To subscribers of the xforms list from Luis Balona <firstname.lastname@example.org> :
Quoting Steve Lamont <email@example.com>:
> 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
firstname.lastname@example.org or see
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