Skip to content

Commit

Permalink
Add more missing implementations 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ubkp committed Oct 17, 2023
1 parent c25d0b8 commit 6127924
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/rcore_desktop_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,15 +452,14 @@ Vector2 GetWindowScaleDPI(void)
// Set clipboard text content
void SetClipboardText(const char *text)
{
TRACELOG(LOG_WARNING, "SetClipboardText() not implemented on target platform");
SDL_SetClipboardText(text);
}

// Get clipboard text content
// NOTE: returned string is allocated and freed by GLFW
// NOTE: returned string must be freed with SDL_free()
const char *GetClipboardText(void)
{
TRACELOG(LOG_WARNING, "GetClipboardText() not implemented on target platform");
return NULL;
return SDL_GetClipboardText();
}

// Show mouse cursor
Expand Down

0 comments on commit 6127924

Please sign in to comment.