diff options
author | DS <vorunbekannt75@web.de> | 2021-08-30 21:44:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-30 21:44:56 +0200 |
commit | 9c4b6f25ab73c413730f9c8d35f34ef7db7e2b33 (patch) | |
tree | 837a56f1a203c7e161b2de91b5d1d587d10d2519 /source/Irrlicht/COSOperator.cpp | |
parent | 75b4c05741e4cb42a0705341b2b696aa0e9a73c0 (diff) | |
download | irrlicht-9c4b6f25ab73c413730f9c8d35f34ef7db7e2b33.tar.xz |
Fix X11 selections (#55)
This fixes all the issues with the X11 selection in addition to switching the clipboard to always be UTF-8.
Diffstat (limited to 'source/Irrlicht/COSOperator.cpp')
-rw-r--r-- | source/Irrlicht/COSOperator.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/Irrlicht/COSOperator.cpp b/source/Irrlicht/COSOperator.cpp index 0867b3d..64f841f 100644 --- a/source/Irrlicht/COSOperator.cpp +++ b/source/Irrlicht/COSOperator.cpp @@ -56,7 +56,8 @@ const core::stringc& COSOperator::getOperatingSystemVersion() const //! copies text to the clipboard
-void COSOperator::copyToClipboard(const c8* text) const
+//! \param text: text in utf-8
+void COSOperator::copyToClipboard(const c8 *text) const
{
if (strlen(text)==0)
return;
@@ -103,7 +104,7 @@ void COSOperator::copyToClipboard(const c8* text) const //! gets text from the clipboard
-//! \return Returns 0 if no string is in there.
+//! \return Returns 0 if no string is in there, otherwise an utf-8 string.
const c8* COSOperator::getTextFromClipboard() const
{
#if defined(_IRR_XBOX_PLATFORM_)
|