summaryrefslogtreecommitdiff
path: root/Bitmap.cs
diff options
context:
space:
mode:
authorSarah B <git@sarahduck.ca>2024-01-21 23:44:53 -0800
committerSarah B <git@sarahduck.ca>2024-01-21 23:44:53 -0800
commit5be6cc2168c4efe5f72f5b9ef52ca48c26523bc2 (patch)
tree62792bf2e7fca02ea0037d58382cec9a00a3c08f /Bitmap.cs
parent163a2f1a1076d518b04ee37911bdd40afe8b9b2c (diff)
Ported to Raylib-cs 6
Diffstat (limited to 'Bitmap.cs')
-rw-r--r--Bitmap.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bitmap.cs b/Bitmap.cs
index 91eabb9..4cd44d7 100644
--- a/Bitmap.cs
+++ b/Bitmap.cs
@@ -69,7 +69,7 @@ class Bitmap : IDisposable
public static Bitmap FromFile(string path, int MaxW = MaxWidth, int MaxH = MaxHeight)
{
if (!File.Exists(path) || new FileInfo(path).Length > 40000 || !path.Contains(".png"))
- return new Bitmap(Raylib.GenImageChecked(32, 32, 4, 4, Color.BLACK, Color.PINK));
+ return new Bitmap(Raylib.GenImageChecked(32, 32, 4, 4, Color.Black, Color.Pink));
byte[] memory = File.ReadAllBytes(path);
return FromPNGMemory(memory, MaxW, MaxH);
@@ -102,7 +102,7 @@ class Bitmap : IDisposable
if (fallbackImage != null) return FromPNGMemory(fallbackImage, MaxW, MaxH);
}
- Image img = Raylib.GenImageChecked(width, height, 4, 4, Color.PINK, Color.BLACK);
+ Image img = Raylib.GenImageChecked(width, height, 4, 4, Color.Pink, Color.Black);
if (TooBig) return new Bitmap(img);