Commit 4e0130688b85cb4c274f2376bc728093ff50cea7

Thomas de Grivel 2020-03-13T19:17:19

return -1

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/rtbuf_glfw3_keyboard.c b/rtbuf_glfw3_keyboard.c
index a623512..f1f93e1 100644
--- a/rtbuf_glfw3_keyboard.c
+++ b/rtbuf_glfw3_keyboard.c
@@ -261,7 +261,7 @@ int rtbuf_glfw3_keyboard (s_rtbuf *rtb)
   unsigned int n;
   data = (s_rtbuf_glfw3_keyboard_data*) rtb->data;
   if (!data->window)
-    return 1;
+    return -1;
   n = data->notes.note_n;
   while (i < RTBUF_MUSIC_NOTE_MAX && n > 0) {
     s_rtbuf_music_note *note = &data->notes.note[i];