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. --- include/pugl/pugl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/pugl') diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h index 4427c5a..801ae3c 100644 --- a/include/pugl/pugl.h +++ b/include/pugl/pugl.h @@ -923,10 +923,11 @@ typedef enum { PUGL_IGNORE_KEY_REPEAT, ///< True if key repeat events are ignored PUGL_REFRESH_RATE, ///< Refresh rate in Hz PUGL_VIEW_TYPE, ///< View type (a #PuglViewType) + PUGL_DARK_FRAME, ///< True if window frame should be dark } PuglViewHint; /// The number of #PuglViewHint values -#define PUGL_NUM_VIEW_HINTS ((unsigned)PUGL_VIEW_TYPE + 1U) +#define PUGL_NUM_VIEW_HINTS ((unsigned)PUGL_DARK_FRAME + 1U) /// A special view hint value typedef enum { -- cgit v1.2.1