From af0f95c3f47c68a6745cb260f9345ccbcdd9e776 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 12 Jan 2023 10:34:29 -0500 Subject: Fix deprecated API --- include/pugl/pugl.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/pugl') diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h index 6678ce4..468798e 100644 --- a/include/pugl/pugl.h +++ b/include/pugl/pugl.h @@ -1745,7 +1745,7 @@ static inline PUGL_DEPRECATED_BY("puglSetTransientParent") void puglInitTransientFor(PuglView* view, uintptr_t parent) { - puglSetTransientParent(view, (PuglNativeWindow)parent); + puglSetTransientParent(view, (PuglNativeView)parent); } /** @@ -1757,7 +1757,7 @@ static inline PUGL_DEPRECATED_BY("puglSetTransientParent") PuglStatus puglSetTransientFor(PuglView* view, uintptr_t parent) { - return puglSetTransientParent(view, (PuglNativeWindow)parent); + return puglSetTransientParent(view, (PuglNativeView)parent); } /** @@ -1819,7 +1819,7 @@ puglInitWindowHint(PuglView* view, PuglViewHint hint, int value) */ static inline PUGL_DEPRECATED_BY("puglSetParentWindow") void -puglInitWindowParent(PuglView* view, PuglNativeWindow parent) +puglInitWindowParent(PuglView* view, PuglNativeView parent) { puglSetParentWindow(view, parent); } @@ -1924,7 +1924,7 @@ static inline PUGL_DEPRECATED_BY("puglShow") PuglStatus puglShowWindow(PuglView* view) { - return puglShow(view); + return puglShow(view, PUGL_SHOW_RAISE); } static inline PUGL_DEPRECATED_BY("puglHide") -- cgit v1.2.1