aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples
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
parent362d83b9556355b1d3dfb6cb892896ed33371521 (diff)
default Crow.CairoBackend ok
Diffstat (limited to 'Samples')
-rw-r--r--Samples/ShowCase/ShowCase.cs2
-rw-r--r--Samples/common/src/Editor.cs4
-rw-r--r--Samples/common/src/SampleBase.cs1
-rw-r--r--Samples/common/src/TestWidget.cs2
4 files changed, 5 insertions, 4 deletions
diff --git a/Samples/ShowCase/ShowCase.cs b/Samples/ShowCase/ShowCase.cs
index 4f3d79f8..9096ebe6 100644
--- a/Samples/ShowCase/ShowCase.cs
+++ b/Samples/ShowCase/ShowCase.cs
@@ -36,7 +36,7 @@ namespace ShowCase
using (Showcase app = new Showcase ()) {
app.WindowTitle = "C.R.O.W Showcase";
- app.SetWindowIcon ("#Crow.Icons.crow.png");
+ //app.SetWindowIcon ("#Crow.Icons.crow.png");
//app.Theme = @"C:\Users\Jean-Philippe\source\Crow\Themes\TestTheme";
CurrentProgramInstance = app;
//Interface.UPDATE_INTERVAL = 50;
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);
diff --git a/Samples/common/src/SampleBase.cs b/Samples/common/src/SampleBase.cs
index 6d06dba4..2d773af4 100644
--- a/Samples/common/src/SampleBase.cs
+++ b/Samples/common/src/SampleBase.cs
@@ -12,6 +12,7 @@ using System.Threading;
using System.Diagnostics;
+using Drawing2D;
namespace Samples
{
diff --git a/Samples/common/src/TestWidget.cs b/Samples/common/src/TestWidget.cs
index 40970d80..e23a2361 100644
--- a/Samples/common/src/TestWidget.cs
+++ b/Samples/common/src/TestWidget.cs
@@ -1,6 +1,6 @@
//Tutorial
using Crow;
-
+using Drawing2D;
using Glfw;
namespace TestWidget {