mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-01 13:40:59 +00:00
Small fix for SDL3 API change for SetClipboardText
This commit is contained in:
parent
07ee830712
commit
4f52c04b3b
2 changed files with 10 additions and 2 deletions
|
@ -2441,8 +2441,11 @@ IN_GetClipboardText(char *out, size_t n)
|
|||
SDL_free(s);
|
||||
}
|
||||
|
||||
/* Copy string s to the clipboard.
|
||||
Returns 0 on success, 1 otherwise.
|
||||
*/
|
||||
int
|
||||
IN_SetClipboardText(const char *s)
|
||||
{
|
||||
return SDL_SetClipboardText(s);
|
||||
return SDL_SetClipboardText(s) != 0;
|
||||
}
|
||||
|
|
|
@ -2437,8 +2437,13 @@ IN_GetClipboardText(char *out, size_t n)
|
|||
SDL_free(s);
|
||||
}
|
||||
|
||||
/* Copy string s to the clipboard.
|
||||
Returns 0 on success, 1 otherwise.
|
||||
*/
|
||||
int
|
||||
IN_SetClipboardText(const char *s)
|
||||
{
|
||||
return SDL_SetClipboardText(s);
|
||||
bool res = SDL_SetClipboardText(s);
|
||||
|
||||
return !res;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue