From afaf35edbad11bc7d71a6793116c229dcfc38f92 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Thu, 4 Jul 2013 17:40:56 +0100 Subject: echo trails improvements --- rotord/rotor.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'rotord/rotor.cpp') diff --git a/rotord/rotor.cpp b/rotord/rotor.cpp index 2d33755..3166de8 100755 --- a/rotord/rotor.cpp +++ b/rotord/rotor.cpp @@ -379,16 +379,22 @@ Image* Video_loader::output(const Frame_spec &frame){ */ if (isLoaded){ - int wanted=(((int) ((frame.time*frame.framerate)+0.5))%(player.getNumberOfFrames()))+1; //+1 is necessary because 1st frame in a video is number 1? + int wanted=(((int) ((frame.time*frame.framerate)+0.5))%(player.getNumberOfFrames())); //+1 is necessary because 1st frame in a video is number 1? //if (wanted==99){ // cerr<<"videoloader: near the end"<data[0]); return ℑ } -- cgit v1.2.3