From 1e48f8bbfdb0f1ce2f9132d604405fb72d160d9d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 12 Jan 2023 15:30:44 -0500 Subject: Windows: Add PUGL_DARK_FRAME hint This allows dark applications to visually integrate more nicely in Windows 10. A little thing, but it really goes a long way to make programs not look out of place and half-baked. --- bindings/cpp/include/pugl/pugl.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bindings') diff --git a/bindings/cpp/include/pugl/pugl.hpp b/bindings/cpp/include/pugl/pugl.hpp index 90c5de6..257ccd2 100644 --- a/bindings/cpp/include/pugl/pugl.hpp +++ b/bindings/cpp/include/pugl/pugl.hpp @@ -378,9 +378,11 @@ enum class ViewHint { ignoreKeyRepeat, ///< @copydoc PUGL_IGNORE_KEY_REPEAT refreshRate, ///< @copydoc PUGL_REFRESH_RATE viewType, ///< @copydoc PUGL_VIEW_TYPE + darkFrame, ///< @copydoc PUGL_DARK_FRAME }; -static_assert(static_cast(PUGL_VIEW_TYPE) == ViewHint::viewType, ""); +static_assert(static_cast(PUGL_DARK_FRAME) == ViewHint::darkFrame, + ""); using ViewHintValue = PuglViewHintValue; ///< @copydoc PuglViewHintValue -- cgit v1.2.1