aboutsummaryrefslogtreecommitdiffstats
path: root/test/pugl_cairo_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-08-04 20:28:28 +0200
committerDavid Robillard <d@drobilla.net>2019-09-03 08:34:39 +0200
commit89af2b1e3910196c4cad47c3748c1a2920b3faf9 (patch)
tree1b9ffadabf823426ce62b7d8b77a303e3d6950f7 /test/pugl_cairo_test.c
parentb0ac6dcb492b68404d800fe8ed0c7393d487fa4b (diff)
downloadpugl-89af2b1e3910196c4cad47c3748c1a2920b3faf9.tar.gz
pugl-89af2b1e3910196c4cad47c3748c1a2920b3faf9.tar.bz2
pugl-89af2b1e3910196c4cad47c3748c1a2920b3faf9.zip
Rename remaining init functions
This finishes the removal of the init/set split. While these ones are superficial, the general idea here is to provide general functions that work before or after window creation where possible. This prevents the situation where ever more dynamic counterparts to existing init functions get added over time.
Diffstat (limited to 'test/pugl_cairo_test.c')
-rw-r--r--test/pugl_cairo_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/pugl_cairo_test.c b/test/pugl_cairo_test.c
index 52cbbbd..278a74d 100644
--- a/test/pugl_cairo_test.c
+++ b/test/pugl_cairo_test.c
@@ -212,10 +212,10 @@ main(int argc, char** argv)
PuglView* view = puglNewView(world);
puglSetFrame(view, frame);
puglSetMinSize(view, 256, 256);
- puglInitWindowHint(view, PUGL_RESIZABLE, resizable);
- puglInitBackend(view, puglCairoBackend());
+ puglSetViewHint(view, PUGL_RESIZABLE, resizable);
+ puglSetBackend(view, puglCairoBackend());
- puglInitWindowHint(view, PUGL_IGNORE_KEY_REPEAT, ignoreKeyRepeat);
+ puglSetViewHint(view, PUGL_IGNORE_KEY_REPEAT, ignoreKeyRepeat);
puglSetEventFunc(view, onEvent);
if (puglCreateWindow(view, "Pugl Test")) {