Author: toshok
Date: 2007-10-06 01:22:28 -0400 (Sat, 06 Oct 2007)
New Revision: 87025
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/animation.cpp
trunk/moon/src/clock.cpp
Log:
2007-10-05 Chris Toshok <[EMAIL PROTECTED]>
* animation.cpp (KeyFrameComparer): fix airlines (and probably a
host of other keyframe usage besides). The problem was that this
function was treating its args as keyframe*'s, when in actuality
they were keyframe**'s. that explains the intermittent nature of
the bug, as well as the faulty sorting I was experiencing earlier.
* clock.cpp (TimeManager::Tick): reinstate the throttling, yay.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-10-06 01:24:22 UTC (rev 87024)
+++ trunk/moon/src/ChangeLog 2007-10-06 05:22:28 UTC (rev 87025)
@@ -1,5 +1,15 @@
2007-10-05 Chris Toshok <[EMAIL PROTECTED]>
+ * animation.cpp (KeyFrameComparer): fix airlines (and probably a
+ host of other keyframe usage besides). The problem was that this
+ function was treating its args as keyframe*'s, when in actuality
+ they were keyframe**'s. that explains the intermittent nature of
+ the bug, as well as the faulty sorting I was experiencing earlier.
+
+ * clock.cpp (TimeManager::Tick): reinstate the throttling, yay.
+
+2007-10-05 Chris Toshok <[EMAIL PROTECTED]>
+
* clock.cpp (TimeManager::Tick): I have no idea how this is
possible, but the throttle code is *completely* screwing up the
Airlines demo animations.
Modified: trunk/moon/src/animation.cpp
===================================================================
--- trunk/moon/src/animation.cpp 2007-10-06 01:24:22 UTC (rev 87024)
+++ trunk/moon/src/animation.cpp 2007-10-06 05:22:28 UTC (rev 87025)
@@ -752,8 +752,8 @@
KeyFrameComparer (gconstpointer kf1, gconstpointer kf2)
{
// Assumes timespan keytimes only
- TimeSpan ts1 = ((KeyFrame *) kf1)->resolved_keytime;
- TimeSpan ts2 = ((KeyFrame *) kf2)->resolved_keytime;
+ TimeSpan ts1 = (*(KeyFrame **) kf1)->resolved_keytime;
+ TimeSpan ts2 = (*(KeyFrame **) kf2)->resolved_keytime;
TimeSpan tsdiff = ts1 - ts2;
if (tsdiff == 0)
@@ -817,6 +817,8 @@
KeyFrame *previous_keyframe = NULL;
guint i;
+ *prev_frame = NULL;
+
/* figure out what segment to use (this assumes the list is sorted) */
for (i = 0; i < sorted_list->len; i++) {
KeyFrame *keyframe = (KeyFrame *) sorted_list->pdata[i];
Modified: trunk/moon/src/clock.cpp
===================================================================
--- trunk/moon/src/clock.cpp 2007-10-06 01:24:22 UTC (rev 87024)
+++ trunk/moon/src/clock.cpp 2007-10-06 05:22:28 UTC (rev 87025)
@@ -211,7 +211,6 @@
}
ENDTICKTIMER (tick, "TimeManager::Tick");
-#if THROTTLING_WORKS
// for some reason this code completely breaks the airlines demo...
// we need to figure out what the hell it's doing.
@@ -256,9 +255,6 @@
AddTimeout();
previous_smoothed = current_smoothed;
-
- //time_manager_list_clocks ();
-#endif
}
void
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches