Flickering while draw image

2006-12-05 Thread Christian Giordano
I'm trying to animate an image, so I'm drawing it every nilEvent with a different position. What I get though, is a very annoying flickering regardless the timeout of the EvtGetEvent (tried with short time). preview here: http://nuthinking.com/temp/palm_flickering.jpg It's true that I'm

re: Flickering while draw image

2006-12-05 Thread msingh
Hi, While your drawing, I hope your code should be like that WinPushDrawState(); -- - WinPopDrawState(); If not please do the drawing inside this push and pop. As for as your flickering problem is concern you can use following API, please verify that your code should be in

RE: Flickering while draw image

2006-12-05 Thread John Sutton
To: Palm Developer Forum Subject: Flickering while draw image I'm trying to animate an image, so I'm drawing it every nilEvent with a different position. What I get though, is a very annoying flickering regardless the timeout of the EvtGetEvent (tried with short time). preview here: http

Re: Flickering while draw image

2006-12-05 Thread Robert Moynihan
Christian Giordano wrote: I'm trying to animate an image, so I'm drawing it every nilEvent with a different position. What I get though, is a very annoying flickering regardless the timeout of the EvtGetEvent (tried with short time). Mukesh mentioned locking the window, here's another way:

Re: Flickering while draw image

2006-12-05 Thread Christian Giordano
Robert Moynihan wrote: Christian Giordano wrote: I'm trying to animate an image, so I'm drawing it every nilEvent with a different position. What I get though, is a very annoying flickering regardless the timeout of the EvtGetEvent (tried with short time). Mukesh mentioned locking the window,

Re: Flickering while draw image

2006-12-05 Thread Christian Giordano
I'm trying to animate an image, so I'm drawing it every nilEvent with a different position. What I get though, is a very annoying flickering regardless the timeout of the EvtGetEvent (tried with short time). Mukesh mentioned locking the window, here's another way: Create an offscreen window,

Re: Flickering while draw image

2006-12-05 Thread Robert Moynihan
Christian Giordano wrote: well, the flickering is almost entirely gone. But I wouldn't say entirely, but probably behaves like the screen of normal PC, so I reckon it is definitely acceptable. If done right there should be no flicker at all. But it depends on what you are calling flicker.

Re: Flickering while draw image

2006-12-05 Thread Christian Giordano
But if you are talking about animation, and the smoothness of a graphic moving around the screen, then, yes, that kind of flicker will still exist, since the moving image must be drawn in discreet positions on the screen. Hi Robert, this image should explain what I mean: