diff options
author | David Robillard <d@drobilla.net> | 2019-08-02 21:49:16 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-08-02 23:28:15 +0200 |
commit | 1c1e053d3403a6e03a00db8f3551f6a19302876b (patch) | |
tree | d17ecd6498434ef5d24a59e5416aa22d542e48b1 /test | |
parent | 9f4a5e733b20f2de1619b46e0f7a36b3b5558f6e (diff) | |
download | pugl-1c1e053d3403a6e03a00db8f3551f6a19302876b.tar.gz pugl-1c1e053d3403a6e03a00db8f3551f6a19302876b.tar.bz2 pugl-1c1e053d3403a6e03a00db8f3551f6a19302876b.zip |
Replace puglIgnoreKeyRepeat() with a hint
Diffstat (limited to 'test')
-rw-r--r-- | test/pugl_cairo_test.c | 2 | ||||
-rw-r--r-- | test/pugl_test.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/pugl_cairo_test.c b/test/pugl_cairo_test.c index d3b157e..a16c821 100644 --- a/test/pugl_cairo_test.c +++ b/test/pugl_cairo_test.c @@ -209,7 +209,7 @@ main(int argc, char** argv) puglInitWindowHint(view, PUGL_RESIZABLE, resizable); puglInitBackend(view, puglCairoBackend()); - puglIgnoreKeyRepeat(view, ignoreKeyRepeat); + puglInitWindowHint(view, PUGL_IGNORE_KEY_REPEAT, ignoreKeyRepeat); puglSetEventFunc(view, onEvent); if (puglCreateWindow(view, "Pugl Test")) { diff --git a/test/pugl_test.c b/test/pugl_test.c index 7c8d5f2..3c4612e 100644 --- a/test/pugl_test.c +++ b/test/pugl_test.c @@ -180,7 +180,7 @@ main(int argc, char** argv) puglInitWindowHint(view, PUGL_SAMPLES, samples); puglInitWindowHint(view, PUGL_DOUBLE_BUFFER, doubleBuffer); - puglIgnoreKeyRepeat(view, ignoreKeyRepeat); + puglInitWindowHint(view, PUGL_IGNORE_KEY_REPEAT, ignoreKeyRepeat); puglSetEventFunc(view, onEvent); const uint8_t title[] = { 'P', 'u', 'g', 'l', ' ', |