From 48deeeabfd86cfc5b993936760e1332308a47ab2 Mon Sep 17 00:00:00 2001 From: Sarah Duck Date: Mon, 16 Jun 2025 22:10:06 -0700 Subject: Optimizations, and Transparent Window! --- Mouse.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Mouse.cs') diff --git a/Mouse.cs b/Mouse.cs index fdf0c5c..67356ce 100644 --- a/Mouse.cs +++ b/Mouse.cs @@ -15,7 +15,7 @@ abstract class Mouse : Drawable public static Action? Clicked; - protected readonly static byte[] FallbackImg = EmbeddedResources.GetResource("misc.cursor.png"); + protected readonly static Image FallbackImg = Raylib.LoadImageFromMemory(".png", EmbeddedResources.GetResource("misc.cursor.png")); public Mouse() : base() { @@ -28,7 +28,7 @@ abstract class Mouse : Drawable Cursor = Bitmap.FromPNGMemory(File.ReadAllBytes(CursorPath), 32, 32); } else { Console.WriteLine("The cursor PNG was either mising or too big. Using the default."); - Cursor = Bitmap.FromPNGMemory(FallbackImg); + Cursor = new Bitmap(Raylib.ImageCopy(FallbackImg), 32, 32); } } -- cgit