From d7a93950b3af397580572adf2e366f3b162104a9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 23 Jan 2025 17:00:36 -0500 Subject: Rename puglPostRedisplay() to puglObscureView() For consistency with event types (since "obscure" is opposite "expose") and the upcoming puglObscureRegion(). --- src/mac.m | 2 +- src/win.c | 4 ++-- src/x11.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/mac.m b/src/mac.m index 2f43ace..bf8e0f4 100644 --- a/src/mac.m +++ b/src/mac.m @@ -1644,7 +1644,7 @@ puglGetTime(const PuglWorld* world) } PuglStatus -puglPostRedisplay(PuglView* view) +puglObscureView(PuglView* view) { [view->impl->drawView setNeedsDisplay:YES]; return PUGL_SUCCESS; diff --git a/src/win.c b/src/win.c index d9f1b75..a0d0778 100644 --- a/src/win.c +++ b/src/win.c @@ -1042,7 +1042,7 @@ puglSetViewStyle(PuglView* const view, const PuglViewStyleFlags flags) const bool newMaximized = styleIsMaximized(flags); if (oldMaximized != newMaximized) { ShowWindow(impl->hwnd, newMaximized ? SW_SHOWMAXIMIZED : SW_RESTORE); - puglPostRedisplay(view); + puglObscureView(view); } return PUGL_SUCCESS; @@ -1209,7 +1209,7 @@ puglGetTime(const PuglWorld* world) } PuglStatus -puglPostRedisplay(PuglView* view) +puglObscureView(PuglView* view) { InvalidateRect(view->impl->hwnd, NULL, false); return PUGL_SUCCESS; diff --git a/src/x11.c b/src/x11.c index 6b45fd4..235af39 100644 --- a/src/x11.c +++ b/src/x11.c @@ -744,7 +744,7 @@ puglShow(PuglView* const view, const PuglShowCommand command) } if (view->stage == PUGL_VIEW_STAGE_CONFIGURED) { - st = puglPostRedisplay(view); + st = puglObscureView(view); } } @@ -1877,7 +1877,7 @@ puglGetTime(const PuglWorld* const world) } PuglStatus -puglPostRedisplay(PuglView* const view) +puglObscureView(PuglView* const view) { PuglRect rect = puglGetFrame(view); rect.x = 0; -- cgit v1.2.1