mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-02 16:08:30 +00:00
clipboard: SDL_GetPrimarySelectionText() now follows the SDL_GetStringRule.
Reference Issue #10229.
This commit is contained in:
@@ -2264,13 +2264,12 @@ int SDLTest_CommonEventMainCallbacks(SDLTest_CommonState *state, const SDL_Event
|
||||
case SDLK_V:
|
||||
if (withAlt) {
|
||||
/* Alt-V paste awesome text from the primary selection! */
|
||||
char *text = SDL_GetPrimarySelectionText();
|
||||
const char *text = SDL_GetPrimarySelectionText();
|
||||
if (*text) {
|
||||
SDL_Log("Primary selection: %s\n", text);
|
||||
} else {
|
||||
SDL_Log("Primary selection is empty\n");
|
||||
}
|
||||
SDL_free(text);
|
||||
|
||||
} else if (withControl) {
|
||||
if (withShift) {
|
||||
|
Reference in New Issue
Block a user