From 00e0a5f2ce568f56cbfebed1a7eef4ced5ef09eb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 1 Apr 2020 19:36:01 +0200 Subject: Consistently use "view" terminology in API The sloppy use of "window" caused quite a bit of confusion, since views only correspond to top-level windows in some cases, and on MacOS, a non-top-level view is not a "window" at all. --- pugl/detail/win.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pugl/detail/win.h') diff --git a/pugl/detail/win.h b/pugl/detail/win.h index 283f39e..949fa90 100644 --- a/pugl/detail/win.h +++ b/pugl/detail/win.h @@ -106,11 +106,11 @@ puglWinCreateWindow(const PuglView* const view, CW_USEDEFAULT, CW_USEDEFAULT, wr.right-wr.left, wr.bottom-wr.top, (HWND)view->parent, NULL, NULL, NULL))) { - return PUGL_CREATE_WINDOW_FAILED; + return PUGL_REALIZE_FAILED; } else if (!(*hdc = GetDC(*hwnd))) { DestroyWindow(*hwnd); *hwnd = NULL; - return PUGL_CREATE_WINDOW_FAILED; + return PUGL_REALIZE_FAILED; } return PUGL_SUCCESS; -- cgit v1.2.1