aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2025-01-23 17:00:36 -0500
committerDavid Robillard <d@drobilla.net>2025-01-23 18:02:52 -0500
commitd7a93950b3af397580572adf2e366f3b162104a9 (patch)
treebc555c1c5449680ab9436799e5968d26948675fc /src
parent985dfb99f6a017a2d4629631ee76f74d6ca9eb14 (diff)
downloadpugl-d7a93950b3af397580572adf2e366f3b162104a9.tar.gz
pugl-d7a93950b3af397580572adf2e366f3b162104a9.tar.bz2
pugl-d7a93950b3af397580572adf2e366f3b162104a9.zip
Rename puglPostRedisplay() to puglObscureView()
For consistency with event types (since "obscure" is opposite "expose") and the upcoming puglObscureRegion().
Diffstat (limited to 'src')
-rw-r--r--src/mac.m2
-rw-r--r--src/win.c4
-rw-r--r--src/x11.c4
3 files changed, 5 insertions, 5 deletions
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;