Simplified clipboard API.

This commit is contained in:
Camilla Berglund
2012-04-12 00:51:58 +02:00
parent 721e0a7fd0
commit f868712f02
9 changed files with 33 additions and 56 deletions
+3 -6
View File
@@ -59,19 +59,16 @@ GLFWAPI void glfwSetClipboardString(GLFWwindow handle, const char* string)
// Return the current clipboard contents
//========================================================================
GLFWAPI size_t glfwGetClipboardString(GLFWwindow handle, char* string, size_t size)
GLFWAPI const char* glfwGetClipboardString(GLFWwindow handle)
{
_GLFWwindow* window = (_GLFWwindow*) handle;
if (!_glfwInitialized)
{
_glfwSetError(GLFW_NOT_INITIALIZED, NULL);
return 0;
return NULL;
}
if (!string || !size)
return 0;
return _glfwPlatformGetClipboardString(window, string, size);
return _glfwPlatformGetClipboardString(window);
}