aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-01-12 15:30:44 -0500
committerDavid Robillard <d@drobilla.net>2023-01-14 11:53:28 -0500
commit1e48f8bbfdb0f1ce2f9132d604405fb72d160d9d (patch)
tree2fbb2e70f5bf5e7f7e021dafb51dd508944426f2 /bindings/cpp
parentbd4f79646f623e929e6aa22bea028952b515aeef (diff)
downloadpugl-1e48f8bbfdb0f1ce2f9132d604405fb72d160d9d.tar.gz
pugl-1e48f8bbfdb0f1ce2f9132d604405fb72d160d9d.tar.bz2
pugl-1e48f8bbfdb0f1ce2f9132d604405fb72d160d9d.zip
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.
Diffstat (limited to 'bindings/cpp')
-rw-r--r--bindings/cpp/include/pugl/pugl.hpp4
1 files changed, 3 insertions, 1 deletions
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<ViewHint>(PUGL_VIEW_TYPE) == ViewHint::viewType, "");
+static_assert(static_cast<ViewHint>(PUGL_DARK_FRAME) == ViewHint::darkFrame,
+ "");
using ViewHintValue = PuglViewHintValue; ///< @copydoc PuglViewHintValue