Fix crash when pasting text on platforms which don't support it
This commit is contained in:
parent
9c253b36f5
commit
d0b57d7d99
@ -606,6 +606,7 @@ void clipboard_push_text(char * text)
|
||||
char * clipboard_pull_text()
|
||||
{
|
||||
#ifdef MACOSX
|
||||
printf("Not implemented: get text from clipboard\n");
|
||||
#elif defined WIN32
|
||||
if (OpenClipboard(NULL))
|
||||
{
|
||||
@ -623,10 +624,11 @@ char * clipboard_pull_text()
|
||||
}
|
||||
}
|
||||
#elif (defined(LIN32) || defined(LIN64)) && defined(SDL_VIDEO_DRIVER_X11)
|
||||
printf("Not implemented: get text from clipboard\n");
|
||||
#else
|
||||
printf("Not implemented: get text from clipboard\n");
|
||||
return "";
|
||||
#endif
|
||||
return "";
|
||||
}
|
||||
|
||||
int register_extension()
|
||||
|
Loading…
Reference in New Issue
Block a user