From ef551ed4b85bc29b3eb48775faeadcf41596c40a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 23 Jan 2025 17:00:37 -0500 Subject: Replace puglPostRedisplayRect() with puglObscureRegion() --- bindings/cpp/include/pugl/pugl.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'bindings/cpp/include/pugl/pugl.hpp') diff --git a/bindings/cpp/include/pugl/pugl.hpp b/bindings/cpp/include/pugl/pugl.hpp index c74962b..bf87ed3 100644 --- a/bindings/cpp/include/pugl/pugl.hpp +++ b/bindings/cpp/include/pugl/pugl.hpp @@ -615,10 +615,13 @@ public: return static_cast(puglObscureView(cobj())); } - /// @copydoc puglPostRedisplayRect - Status postRedisplayRect(const Rect& rect) noexcept + /// "Obscure" a region so it will be exposed in the next render + Status obscure(const int x, + const int y, + const unsigned width, + const unsigned height) { - return static_cast(puglPostRedisplayRect(cobj(), rect)); + return static_cast(puglObscureRegion(cobj(), x, y, width, height)); } /** -- cgit v1.2.1