aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/win.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-08-03 16:14:54 +0200
committerDavid Robillard <d@drobilla.net>2019-09-03 08:32:16 +0200
commite3b2f305b98747c84fd87eb97e3fa8516acecbfb (patch)
tree784892b7d0a488422a8f53e0be974d2864506148 /pugl/detail/win.c
parent0706f4a121f6f9c5b96a19c4272a8636fc230cbc (diff)
downloadpugl-e3b2f305b98747c84fd87eb97e3fa8516acecbfb.tar.gz
pugl-e3b2f305b98747c84fd87eb97e3fa8516acecbfb.tar.bz2
pugl-e3b2f305b98747c84fd87eb97e3fa8516acecbfb.zip
Simplify hints implementation
Diffstat (limited to 'pugl/detail/win.c')
-rw-r--r--pugl/detail/win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pugl/detail/win.c b/pugl/detail/win.c
index 93dce9d..3a30814 100644
--- a/pugl/detail/win.c
+++ b/pugl/detail/win.c
@@ -360,7 +360,7 @@ initCharEvent(PuglEvent* event, PuglView* view, WPARAM wParam, LPARAM lParam)
static bool
ignoreKeyEvent(PuglView* view, LPARAM lParam)
{
- return view->hints.ignoreKeyRepeat && (lParam & (1 << 30));
+ return view->hints[PUGL_IGNORE_KEY_REPEAT] && (lParam & (1 << 30));
}
static RECT