mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-16 09:48:26 +00:00
SDL_GetClipboardData() follows the SDL_GetStringRule
This commit is contained in:
parent
61a7a0e579
commit
c4eac60000
5 changed files with 22 additions and 31 deletions
|
@ -1996,7 +1996,7 @@ static void SDLTest_PasteScreenShot(void)
|
|||
|
||||
for (i = 0; i < SDL_arraysize(image_formats); ++i) {
|
||||
size_t size;
|
||||
void *data = SDL_GetClipboardData(image_formats[i], &size);
|
||||
const void *data = SDL_GetClipboardData(image_formats[i], &size);
|
||||
if (data) {
|
||||
char filename[16];
|
||||
SDL_IOStream *file;
|
||||
|
@ -2008,7 +2008,6 @@ static void SDLTest_PasteScreenShot(void)
|
|||
SDL_WriteIO(file, data, size);
|
||||
SDL_CloseIO(file);
|
||||
}
|
||||
SDL_free(data);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue