aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/implementation.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-22 17:21:52 +0200
committerDavid Robillard <d@drobilla.net>2019-09-03 08:32:16 +0200
commitdacaaa5f328ac2598123aa1f0744ddd68c87e9cc (patch)
tree31bdcb5effdff7d84f946a577cd77d6462dd6083 /pugl/detail/implementation.c
parent61476f5de49b20a6836186a82082bc2b7c70e971 (diff)
downloadpugl-dacaaa5f328ac2598123aa1f0744ddd68c87e9cc.tar.gz
pugl-dacaaa5f328ac2598123aa1f0744ddd68c87e9cc.tar.bz2
pugl-dacaaa5f328ac2598123aa1f0744ddd68c87e9cc.zip
Move puglGetTime() to PuglWorld
Diffstat (limited to 'pugl/detail/implementation.c')
-rw-r--r--pugl/detail/implementation.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pugl/detail/implementation.c b/pugl/detail/implementation.c
index 29daf15..6ec19c2 100644
--- a/pugl/detail/implementation.c
+++ b/pugl/detail/implementation.c
@@ -67,6 +67,8 @@ puglNewWorld(void)
return NULL;
}
+ world->startTime = puglGetTime(world);
+
return world;
}
@@ -90,7 +92,6 @@ puglNewView(PuglWorld* const world)
view->world = world;
view->width = 640;
view->height = 480;
- view->start_time = puglGetTime(view);
puglSetDefaultHints(view->hints);