Correct typo GetSlectionText -> GetSelectionText

This commit is contained in:
Eddy Jansson 2023-03-02 21:57:40 +01:00 committed by Ryan C. Gordon
parent f833e005e1
commit 91b9ba8c54
1 changed files with 3 additions and 3 deletions

View File

@ -137,7 +137,7 @@ static int SetSelectionText(_THIS, const char *text, Atom selection_type)
return 0; return 0;
} }
static char *GetSlectionText(_THIS, Atom selection_type) static char *GetSelectionText(_THIS, Atom selection_type)
{ {
SDL_VideoData *videodata = _this->driverdata; SDL_VideoData *videodata = _this->driverdata;
Display *display = videodata->display; Display *display = videodata->display;
@ -238,13 +238,13 @@ X11_GetClipboardText(_THIS)
SDL_SetError("Couldn't access X clipboard"); SDL_SetError("Couldn't access X clipboard");
return SDL_strdup(""); return SDL_strdup("");
} }
return GetSlectionText(_this, XA_CLIPBOARD); return GetSelectionText(_this, XA_CLIPBOARD);
} }
char * char *
X11_GetPrimarySelectionText(_THIS) X11_GetPrimarySelectionText(_THIS)
{ {
return GetSlectionText(_this, XA_PRIMARY); return GetSelectionText(_this, XA_PRIMARY);
} }
SDL_bool SDL_bool