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
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
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
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:
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,
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,
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.
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: