aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_internal.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-21 09:54:54 +0200
committerDavid Robillard <d@drobilla.net>2019-07-21 14:44:19 +0200
commit753af54d546963bd86c64ca3c5dde5cc8c92c4c8 (patch)
tree86109f79f8dda2394f43c5bb4aac044e19d5170a /pugl/pugl_internal.h
parent5ba0ea7cd8cfec3f374f380a03e144e24f43a12c (diff)
downloadpugl-753af54d546963bd86c64ca3c5dde5cc8c92c4c8.tar.gz
pugl-753af54d546963bd86c64ca3c5dde5cc8c92c4c8.tar.bz2
pugl-753af54d546963bd86c64ca3c5dde5cc8c92c4c8.zip
Make time start from approximately zero
Diffstat (limited to 'pugl/pugl_internal.h')
-rw-r--r--pugl/pugl_internal.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/pugl/pugl_internal.h b/pugl/pugl_internal.h
index 2860a7f..fea5959 100644
--- a/pugl/pugl_internal.h
+++ b/pugl/pugl_internal.h
@@ -61,11 +61,12 @@ puglInit(int* pargc, char** argv)
return NULL;
}
- view->hints = puglDefaultHints();
- view->ctx_type = PUGL_GL;
- view->impl = impl;
- view->width = 640;
- view->height = 480;
+ view->hints = puglDefaultHints();
+ view->ctx_type = PUGL_GL;
+ view->impl = impl;
+ view->width = 640;
+ view->height = 480;
+ view->start_time = puglGetTime(view);
return view;
}