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()
|
char * clipboard_pull_text()
|
||||||
{
|
{
|
||||||
#ifdef MACOSX
|
#ifdef MACOSX
|
||||||
|
printf("Not implemented: get text from clipboard\n");
|
||||||
#elif defined WIN32
|
#elif defined WIN32
|
||||||
if (OpenClipboard(NULL))
|
if (OpenClipboard(NULL))
|
||||||
{
|
{
|
||||||
@ -623,10 +624,11 @@ char * clipboard_pull_text()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#elif (defined(LIN32) || defined(LIN64)) && defined(SDL_VIDEO_DRIVER_X11)
|
#elif (defined(LIN32) || defined(LIN64)) && defined(SDL_VIDEO_DRIVER_X11)
|
||||||
|
printf("Not implemented: get text from clipboard\n");
|
||||||
#else
|
#else
|
||||||
printf("Not implemented: get text from clipboard\n");
|
printf("Not implemented: get text from clipboard\n");
|
||||||
return "";
|
|
||||||
#endif
|
#endif
|
||||||
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
int register_extension()
|
int register_extension()
|
||||||
|
Loading…
Reference in New Issue
Block a user