Author: toshok
Date: 2007-10-04 13:24:29 -0400 (Thu, 04 Oct 2007)
New Revision: 86895
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/clock.cpp
Log:
2007-10-04 Chris Toshok <[EMAIL PROTECTED]>
* clock.cpp: lots of little changes. fixes clock16.xaml, and
therefor the score animation in dr.popper goes away properly.
also fixes a few other issues with FillBehavior (checked by our
clock xaml tests.)
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-10-04 17:18:16 UTC (rev 86894)
+++ trunk/moon/src/ChangeLog 2007-10-04 17:24:29 UTC (rev 86895)
@@ -1,3 +1,10 @@
+2007-10-04 Chris Toshok <[EMAIL PROTECTED]>
+
+ * clock.cpp: lots of little changes. fixes clock16.xaml, and
+ therefor the score animation in dr.popper goes away properly.
+ also fixes a few other issues with FillBehavior (checked by our
+ clock xaml tests.)
+
2007-10-04 Jeffrey Stedfast <[EMAIL PROTECTED]>
* text.cpp (Glyphs::.ctor): We no longer have a TextFont member
Modified: trunk/moon/src/clock.cpp
===================================================================
--- trunk/moon/src/clock.cpp 2007-10-04 17:18:16 UTC (rev 86894)
+++ trunk/moon/src/clock.cpp 2007-10-04 17:24:29 UTC (rev 86895)
@@ -252,6 +252,8 @@
AddTimeout();
previous_smoothed = current_smoothed;
+
+// time_manager_list_clocks();
}
void
@@ -310,12 +312,10 @@
{
spaces (level);
printf (clock->Is(Type::CLOCKGROUP) ? "ClockGroup " : "Clock ");
+ printf ("(%p) ", clock);
if (clock->GetName ()) {
printf ("'%s', ", clock->GetName());
}
- else {
- printf ("(%p), ", clock);
- }
printf ("%lld (%.2f) ", clock->GetCurrentTime(),
clock->GetCurrentProgress());
@@ -467,7 +467,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
@@ -506,7 +506,7 @@
}
}
}
- else if (new_time <= 0) {
+ else if (is_reversed && new_time <= 0) {
is_reversed = false;
new_time = -new_time;
@@ -758,7 +758,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