aboutsummaryrefslogtreecommitdiff
path: root/paperreplay.cc
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2021-09-20 00:45:38 +0200
committerJavier <dev.git@javispedro.com>2021-09-20 00:45:38 +0200
commitd0e882e6b759ffe18a545cb8cce18ca402eac763 (patch)
tree2cf463f5cfa486982a47ae1fcae5ef0d54399da1 /paperreplay.cc
parent8f5e61797d35ef376f9eb7af78731daec9a49091 (diff)
downloadscribiu-d0e882e6b759ffe18a545cb8cce18ca402eac763.tar.gz
scribiu-d0e882e6b759ffe18a545cb8cce18ca402eac763.zip
use stf speed to compute time between stroke points in txyf export
Diffstat (limited to 'paperreplay.cc')
-rw-r--r--paperreplay.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/paperreplay.cc b/paperreplay.cc
index c7a7f49..9f0a7f6 100644
--- a/paperreplay.cc
+++ b/paperreplay.cc
@@ -97,7 +97,12 @@ PaperReplay::PenTime PaperReplay::Session::endTime() const
return d->end;
}
-bool PaperReplay::Session::startTimeLess(const Session &a, const Session &b)
+PaperReplay::PenTime PaperReplay::Session::duration() const
+{
+ return d->end - d->start;
+}
+
+bool PaperReplay::Session::compareByStartTime(const Session &a, const Session &b)
{
return a.d->start < b.d->start;
}