Re: [Rve-main] question about Effect::animate()
Status: Beta
Brought to you by:
bones0
|
From: Luca A. <luc...@em...> - 2003-10-29 17:11:29
|
Hi Jonas,
On Wed, 2003-10-29 at 15:51, Jonas Jensen wrote:
> On Wed, 2003-10-29 at 14:54, Luca Abeni wrote:
> > or someting similar? Maybe I am mistaken, but my intuition is that we
> > are ahead of schedule if the current time is smaller than the time at
> > which the effect is scheduled.
>
> The timers used in Effect::animate() count down, not up, so the code
> should be correct.
Ah, ok... Now I understand the code and I can see how stupid was my
comment ;-)
[...]
> I cannot reproduce your problem. I just tried running
>
> rve -f 25 512 288 0 hscroll_text "`perl -e 'print "$_ " for (1 .. 600)'`"
that works for me too, but
./rve -f 25 -s 80 -y 10 -x 50 540 60 0 hscroll_text "`perl -e 'print "$_
" for (1 .. 600)'`" -s 4 > /tmp/rve.fifo
(everything in a single line; sorry if the mailer truncated it) fails...
I did some more investigation, and I think the problem is due to an
overflow in Effect_move::run().
Because of such overflow, _distance becomes negative, and this creates
the problem (in Effect::animate(), t_timer is positive and t_schedule is
negative... Thus, rve wants to sleep for a very long time! ;)
I am trying to convert _x1, _x2, _y1, _y2, and _distance to long long
int, and see if this helps...
Luca
--
_____________________________________________________________________________
Copy this in your signature, if you think it is important:
N O W A R ! ! !
|