Author: toshok
Date: 2007-10-07 14:23:43 -0400 (Sun, 07 Oct 2007)
New Revision: 87055
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/clock.cpp
Log:
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-10-07 18:01:46 UTC (rev 87054)
+++ trunk/moon/src/ChangeLog 2007-10-07 18:23:43 UTC (rev 87055)
@@ -1,3 +1,14 @@
+2007-10-07 Chris Toshok <[EMAIL PROTECTED]>
+
+ * clock.cpp (Clock::Tick): make sure we're reversed before
+ switching to Fill if the clock is at 0 (and make sure we're not
+ reversed before switching to Fill on the other end of the
+ timespan). Some animations were skipping directly to fill without
+ ever running.
+ (ClockGroup::Tick): don't Tick a child clock if it's about to
+ Stop. the new tick might cause it to fill.. this needs work
+ still.
+
2007-10-06 Jb Evain <[EMAIL PROTECTED]>
* media.cpp (Image::Render): Deal with clipping.
Modified: trunk/moon/src/clock.cpp
===================================================================
--- trunk/moon/src/clock.cpp 2007-10-07 18:01:46 UTC (rev 87054)
+++ trunk/moon/src/clock.cpp 2007-10-07 18:23:43 UTC (rev 87055)
@@ -468,7 +468,7 @@
#if CLOCK_DEBUG
printf ("+ clock %p (%s) duration is %lld, and new_time ==
%lld\n", this, timeline->GetName(), duration_timespan, new_time);
#endif
- if (new_time >= duration_timespan) {
+ if (!is_reversed && new_time >= duration_timespan) {
#if CLOCK_DEBUG
printf ("+ clock %p (%s) hit its duration\n", this,
timeline->GetName());
#endif
@@ -507,7 +507,7 @@
}
}
}
- else if (new_time <= 0) {
+ else if (is_reversed && new_time <= 0) {
is_reversed = false;
new_time = -new_time;
@@ -759,7 +759,7 @@
otherwise just call its Tick
method */
Clock *c = (Clock*)l->data;
- if (c->GetClockState() != Clock::Stopped) {
+ if (c->GetClockState() != Clock::Stopped &&
c->GetNewClockState() != Clock::Stopped) {
c->Tick ();
}
else if ((c->GetClockState() == Clock::Stopped) &&
(!c->GetHasStarted() && c->GetBeginTime () <= current_time)) {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches