aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-11-28 00:17:28 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-11-28 00:19:10 +0000
commit037185de6d1bd6d6250e3226c680d115e23693d0 (patch)
tree2c3ceb32198f9dbe34ae6081384b2cb2e6a83dd7 /src/main.c
parent8419a8a8e2bdc01aa37e475d3a83a2a4a9a4bdf8 (diff)
downloadimv-037185de6d1bd6d6250e3226c680d115e23693d0.tar.gz
Add some infrastructure for gif playback
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 78cc758..f8f537b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -390,6 +390,12 @@ int main(int argc, char** argv)
}
}
+ if(view.playing) {
+ double cur_time = SDL_GetTicks() / 1000.0;
+ double dt = cur_time - last_time;
+ last_time = SDL_GetTicks() / 1000.0;
+ imv_loader_time_passed(tex, dt);
+ }
if(view.redraw) {
if(g_options.solid_bg) {