diff options
author | David Robillard <d@drobilla.net> | 2022-06-06 22:41:41 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-06-08 22:04:49 -0400 |
commit | 3cc5539d1c85e5044e6f893b3173cd1392bd8fc8 (patch) | |
tree | c0706a7c80a391e86b913ce165ef0f70f3de17f8 /examples | |
parent | 96ca7a5a2ae976c587c676baf87446a55961e507 (diff) | |
download | pugl-3cc5539d1c85e5044e6f893b3173cd1392bd8fc8.tar.gz pugl-3cc5539d1c85e5044e6f893b3173cd1392bd8fc8.tar.bz2 pugl-3cc5539d1c85e5044e6f893b3173cd1392bd8fc8.zip |
Use consistent terminology for native views
On MacOS in particular, views and windows are entirely different concepts, so
confusing them... confuses things. This was the last holdover in the API that
used the old "native window".
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pugl_embed_demo.c | 2 | ||||
-rw-r--r-- | examples/pugl_window_demo.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/pugl_embed_demo.c b/examples/pugl_embed_demo.c index f7e4676..9f93287 100644 --- a/examples/pugl_embed_demo.c +++ b/examples/pugl_embed_demo.c @@ -289,7 +289,7 @@ main(int argc, char** argv) } puglSetFrame(app.child, getChildFrame(parentFrame)); - puglSetParentWindow(app.child, puglGetNativeWindow(app.parent)); + puglSetParentWindow(app.child, puglGetNativeView(app.parent)); puglSetViewHint(app.child, PUGL_USE_DEBUG_CONTEXT, opts.errorChecking); puglSetViewHint(app.child, PUGL_SAMPLES, opts.samples); diff --git a/examples/pugl_window_demo.c b/examples/pugl_window_demo.c index 3b8da31..b3deb0d 100644 --- a/examples/pugl_window_demo.c +++ b/examples/pugl_window_demo.c @@ -206,7 +206,7 @@ main(int argc, char** argv) if (i == 1) { puglSetTransientParent(app.cubes[1].view, - puglGetNativeWindow(app.cubes[0].view)); + puglGetNativeView(app.cubes[0].view)); } if ((st = puglRealize(view))) { |