mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-04 10:57:40 +00:00
Clipboard data API revamp
The clipboard data API is now supported on all platforms, at least for internal use.
This commit is contained in:
parent
61ff86617a
commit
35876da3c4
32 changed files with 552 additions and 315 deletions
|
@ -73,7 +73,7 @@ static int clipboard_testGetClipboardData(void *arg)
|
|||
{
|
||||
void *buffer = NULL;
|
||||
size_t length;
|
||||
buffer = SDL_GetClipboardData(&length, "image/png");
|
||||
buffer = SDL_GetClipboardData("image/png", &length);
|
||||
SDLTest_AssertPass("Call to SDL_GetClipboardData succeeded");
|
||||
|
||||
if (buffer != NULL) {
|
||||
|
@ -134,16 +134,13 @@ static int clipboard_testSetClipboardData(void *arg)
|
|||
{
|
||||
int result = -1;
|
||||
|
||||
result = SDL_SetClipboardData(NULL, 0, NULL, NULL);
|
||||
result = SDL_SetClipboardData(NULL, NULL, NULL, NULL, 0);
|
||||
SDLTest_AssertPass("Call to SDL_SetClipboardData succeeded");
|
||||
SDLTest_AssertCheck(
|
||||
result == 0,
|
||||
"Validate SDL_SetClipboardData result, expected 0, got %i",
|
||||
result);
|
||||
|
||||
SDL_GetClipboardUserdata();
|
||||
SDLTest_AssertPass("Call to SDL_GetClipboardUserdata succeeded");
|
||||
|
||||
return TEST_COMPLETED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue