Selaa lähdekoodia

Fixed build error

CPKreuz 4 vuotta sitten
vanhempi
commit
909e8eee40
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      PixiEditor/Models/Tools/Tools/PenTool.cs

+ 1 - 1
PixiEditor/Models/Tools/Tools/PenTool.cs

@@ -92,7 +92,7 @@ namespace PixiEditor.Models.Tools.Tools
                 return changes;
             }
 
-            changedPixelsindex += changedPixelsindex >= 2 ? 0 : 1;
+            changedPixelsindex += changedPixelsindex >= 2 ? (byte)0 : (byte)1;
 
             var result = BitmapPixelChanges.FromSingleColoredArray(GetThickShape(latestPixels, toolSize), color);