Re: XForms: flimage expose is slow

From: Luis Balona (
Date: Sun Feb 18 2001 - 03:06:53 EST

  • Next message: Luis Balona: "XForms: Image zoom/pan routine"

    # To subscribers of the xforms list from Luis Balona <> :

    Quoting Steve Lamont <>:

    > 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 or see
    XForms Home Page:
    List Archive:

    This archive was generated by hypermail 2b29 : Sat Feb 17 2001 - 22:48:40 EST