[plt-scheme] Double buffer (scheme/gui)

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sat Apr 11 13:31:54 EDT 2009

At Sat, 11 Apr 2009 19:25:29 +0200, CHAMLY wrote:
> Here is what i have in the paint-callback of my canvas:
> 
>               (send BITMAP-DC-1 clear)              ; i move my tunnel
>               (send TUNNEL draw-tunnel1  BITMAP-DC-1  y1)
>               (send dc draw-bitmap BITMAP-1  (- x-canvas) 0 'solid))
> 
> 
>               (send BITMAP-DC-2 clear)     ; i move my copter
>               (send BITMAP-DC-2 draw-bitmap copterUp  0 0 'solid)
> 
>               (send dc draw-bitmap BITMAP-2  150 (send COPTER get-y- 
> copter)  'solid))
> 
> The problem is that my copter still flickers, and i don't know why??

Does it help to specify the 'no-autoclear style when creating the
canvas%?



Posted on the users mailing list.