From 3c4deef40ccb57e46e3da30c76dee1e5011d7fd7 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 5 Nov 2022 11:18:03 +0100 Subject: Only allow text in mgl_window_get_clipboard_string --- tests/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/main.c b/tests/main.c index f1fad72..ee632a7 100644 --- a/tests/main.c +++ b/tests/main.c @@ -292,7 +292,7 @@ int main(int argc, char **argv) { mgl_window_set_clipboard(&window, str, strlen(str)); fprintf(stderr, "Copied '%s' to the clipboard\n", str); } else if(event.key.code == MGL_KEY_V) { - if(mgl_window_get_clipboard(&window, clipboard_callback, NULL)) { + if(mgl_window_get_clipboard(&window, clipboard_callback, NULL, MGL_CLIPBOARD_TYPE_ALL)) { fprintf(stderr, "Successfully copied clipboard!\n"); } else { fprintf(stderr, "Failed to copy clipboard!\n"); -- cgit v1.2.3