mirror of
https://github.com/glfw/glfw.git
synced 2026-01-11 23:33:16 +01:00
Deprecate window parameter of clipboard functions
This commit is contained in:
@@ -67,7 +67,7 @@ static void key_callback(GLFWwindow* window, int key, int scancode, int action,
|
||||
{
|
||||
const char* string;
|
||||
|
||||
string = glfwGetClipboardString(window);
|
||||
string = glfwGetClipboardString(NULL);
|
||||
if (string)
|
||||
printf("Clipboard contains \"%s\"\n", string);
|
||||
else
|
||||
@@ -79,7 +79,7 @@ static void key_callback(GLFWwindow* window, int key, int scancode, int action,
|
||||
if (mods == MODIFIER)
|
||||
{
|
||||
const char* string = "Hello GLFW World!";
|
||||
glfwSetClipboardString(window, string);
|
||||
glfwSetClipboardString(NULL, string);
|
||||
printf("Setting clipboard to \"%s\"\n", string);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user