summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/activities/simplecontinuousactivitybase.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/engine/activities/simplecontinuousactivitybase.cxx')
-rw-r--r--slideshow/source/engine/activities/simplecontinuousactivitybase.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/slideshow/source/engine/activities/simplecontinuousactivitybase.cxx b/slideshow/source/engine/activities/simplecontinuousactivitybase.cxx
index 9b08adc9b7b2..b2139621c18e 100644
--- a/slideshow/source/engine/activities/simplecontinuousactivitybase.cxx
+++ b/slideshow/source/engine/activities/simplecontinuousactivitybase.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,7 +51,7 @@ namespace slideshow
void SimpleContinuousActivityBase::startAnimation()
{
- // init timer. We measure animation time only when we're
+ // init timer. We measure animation time only when we're
// actually started.
maTimer.reset();
}
@@ -61,7 +61,7 @@ namespace slideshow
ActivityBase::calcTimeLag();
if (! isActive())
return 0.0;
-
+
// retrieve locally elapsed time
const double nCurrElapsedTime( maTimer.getElapsedTime() );
@@ -74,7 +74,7 @@ namespace slideshow
// here, try to spread the animator calls uniquely over
// the [0,1] parameter range. Be aware of the fact that
// perform will be called at least mnMinNumberOfTurns
- // times.
+ // times.
// fraction of time elapsed
const double nFractionElapsedTime(
@@ -109,26 +109,26 @@ namespace slideshow
VERBOSE_TRACE( "SimpleContinuousActivityBase::perform(): "
"t=%f is based on number of calls",
nFractionRequiredCalls );
-
+
// lag global time, so all other animations lag, too:
return ((nFractionElapsedTime - nFractionRequiredCalls)
* mnMinSimpleDuration);
}
}
-
+
bool SimpleContinuousActivityBase::perform()
{
// call base class, for start() calls and end handling
if( !ActivityBase::perform() )
return false; // done, we're ended
-
+
// get relative animation position
// ===============================
-
+
const double nCurrElapsedTime( maTimer.getElapsedTime() );
double nT( nCurrElapsedTime / mnMinSimpleDuration );
-
+
// one of the stop criteria reached?
// =================================
@@ -156,7 +156,7 @@ namespace slideshow
// to give animation the chance to render the last
// frame below
bActivityEnding = true;
-
+
// clamp animation to max permissible value
nT = nEffectiveRepeat;
}
@@ -201,7 +201,7 @@ namespace slideshow
// calc simple time and number of repeats from nT
// Now, that's easy, since the fractional part of
- // nT gives the relative simple time, and the
+ // nT gives the relative simple time, and the
// integer part the number of full repeats:
nRelativeSimpleTime = modf(nT, &nRepeats);