Browse Source

Random things

Equbuxu 3 years ago
parent
commit
3c0f753c95
2 changed files with 2 additions and 1 deletions
  1. 1 0
      src/ChunkyImageLib/ChunkyImage.cs
  2. 1 1
      src/ChunkyImageLib/ImageData.cs

+ 1 - 0
src/ChunkyImageLib/ChunkyImage.cs

@@ -5,6 +5,7 @@ namespace ChunkyImageLib
 {
     public class ChunkyImage
     {
+        private bool locked = false;
         //const int chunkSize = 32;
         private Queue<IOperation> queuedOperations = new Queue<IOperation>();
 

+ 1 - 1
src/ChunkyImageLib/ImageData.cs

@@ -51,7 +51,7 @@ namespace ChunkyImageLib
 
         public SKSurface CreateSKSurface()
         {
-            var surface = SKSurface.Create(new SKImageInfo(Width, Height, ColorType, SKAlphaType.Premul, SKColorSpace.CreateSrgb()));
+            var surface = SKSurface.Create(new SKImageInfo(Width, Height, ColorType, SKAlphaType.Premul, SKColorSpace.CreateSrgb()), PixelBuffer);
             if (surface == null)
                 throw new Exception("Could not create surface");
             return surface;