[chronojump] Disabled animation after test on OSX (was really slow)



commit 0120ff0b393a549b8669d32dbe72eba3dea09b0d
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Dec 26 22:27:07 2017 +0100

    Disabled animation after test on OSX (was really slow)

 src/gui/eventExecute.cs |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/src/gui/eventExecute.cs b/src/gui/eventExecute.cs
index 37ecc55..b8a3a84 100644
--- a/src/gui/eventExecute.cs
+++ b/src/gui/eventExecute.cs
@@ -1950,11 +1950,16 @@ public partial class ChronoJumpWindow
                event_execute_pixmap.DrawLayout (pen_gris, 20, yCp2Out -20, layoutSmall);
        }
 
-       private void on_event_execute_update_graph_in_progress_clicked(object o, EventArgs args) {
+       private void on_event_execute_update_graph_in_progress_clicked(object o, EventArgs args)
+       {
+               bool animate = true;
+               if(UtilAll.GetOSEnum() == UtilAll.OperatingSystems.MACOSX)
+                       animate = false;
+
                switch (currentEventType.Type) {
                        case EventType.Types.JUMP:
                                if(thisJumpIsSimple) 
-                                       
PrepareJumpSimpleGraph(currentEventExecute.PrepareEventGraphJumpSimpleObject, true);
+                                       
PrepareJumpSimpleGraph(currentEventExecute.PrepareEventGraphJumpSimpleObject, animate);
                                else {
                                        PrepareJumpReactiveGraph(
                                                        
currentEventExecute.PrepareEventGraphJumpReactiveObject.lastTv, 
@@ -1966,7 +1971,7 @@ public partial class ChronoJumpWindow
                                break;
                        case EventType.Types.RUN:
                                if(thisRunIsSimple)
-                                       
PrepareRunSimpleGraph(currentEventExecute.PrepareEventGraphRunSimpleObject, true);
+                                       
PrepareRunSimpleGraph(currentEventExecute.PrepareEventGraphRunSimpleObject, animate);
                                else {
                                        bool volumeOnHere = preferences.volumeOn;
                                        //do not play good or bad sounds at RSA because we need to hear the 
GO sound
@@ -1984,7 +1989,7 @@ public partial class ChronoJumpWindow
                                }
                                break;
                        case EventType.Types.REACTIONTIME:
-                                       
PrepareReactionTimeGraph(currentEventExecute.PrepareEventGraphReactionTimeObject, true);
+                                       
PrepareReactionTimeGraph(currentEventExecute.PrepareEventGraphReactionTimeObject, animate);
                                break;
                        case EventType.Types.PULSE:
                                        PreparePulseGraph(


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]