aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/src/Editor.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-11-24 03:00:25 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-11-24 03:00:25 +0100
commitf005d76468dc4c6a368b6f1f6eca69da25214e80 (patch)
tree14a70c7fb9a58be9083dbd7492ecd94d030c18a9 /Samples/common/src/Editor.cs
parent362d83b9556355b1d3dfb6cb892896ed33371521 (diff)
default Crow.CairoBackend ok
Diffstat (limited to 'Samples/common/src/Editor.cs')
-rw-r--r--Samples/common/src/Editor.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Samples/common/src/Editor.cs b/Samples/common/src/Editor.cs
index 0de7af55..13e0f382 100644
--- a/Samples/common/src/Editor.cs
+++ b/Samples/common/src/Editor.cs
@@ -411,7 +411,7 @@ namespace Crow
if (bytes.Length < size)
bytes = size > 512 ? new byte[size] : stackalloc byte[size];
- int encodedBytes = Crow.Text.Encoding.ToUtf8 (buff, bytes);
+ int encodedBytes = buff.ToUtf8 (bytes);
if (encodedBytes > 0) {
bytes[encodedBytes++] = 0;
@@ -456,7 +456,7 @@ namespace Crow
if (bytes.Length < size)
bytes = size > 512 ? new byte[size] : stackalloc byte[size];
- int encodedBytes = Crow.Text.Encoding.ToUtf8 (buff, bytes);
+ int encodedBytes = buff.ToUtf8 (bytes);
gr.SetSource (SelectionBackground);
gr.Rectangle (selRect);