mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Formatting.
This commit is contained in:
parent
e49f1b8801
commit
cca6b52120
@ -60,12 +60,13 @@ static void key_callback(GLFWwindow window, int key, int action)
|
|||||||
{
|
{
|
||||||
char buffer[4096];
|
char buffer[4096];
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
printf("Paste test.\n");
|
printf("Paste test.\n");
|
||||||
|
|
||||||
size = glfwGetClipboardData(buffer, sizeof(buffer), GLFW_CLIPBOARD_FORMAT_STRING);
|
size = glfwGetClipboardData(buffer, sizeof(buffer), GLFW_CLIPBOARD_FORMAT_STRING);
|
||||||
if (size >= sizeof(buffer))
|
if (size >= sizeof(buffer))
|
||||||
{
|
|
||||||
printf("Buffer wasn't big enough to hold clipboard data.\n");
|
printf("Buffer wasn't big enough to hold clipboard data.\n");
|
||||||
}
|
|
||||||
printf("[%lu]: %s\n", (unsigned long) size, buffer);
|
printf("[%lu]: %s\n", (unsigned long) size, buffer);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user