Skip to content

Commit

Permalink
Remove stuff I forgot to remove
Browse files Browse the repository at this point in the history
  • Loading branch information
Equbuxu committed Jul 29, 2021
1 parent d04a476 commit a6d0ba5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
4 changes: 0 additions & 4 deletions PixiEditor/Helpers/LayerBitmapContext.cs
Expand Up @@ -29,10 +29,6 @@ public bool IsPixelMatching(int x, int y, Color premult)
{
int pos = (realY * ctx.Width + realX) * 4;
byte* pixels = (byte*)ctx.Pixels;
byte R = pixels[pos + 2];
byte G = pixels[pos + 1];
byte B = pixels[pos];
byte A = pixels[pos + 3];
return pixels[pos] == premult.B && pixels[pos + 1] == premult.G && pixels[pos + 2] == premult.R && pixels[pos + 3] == premult.A;
}
}
Expand Down
8 changes: 1 addition & 7 deletions PixiEditor/Models/Tools/Tools/FloodFill.cs
Expand Up @@ -4,7 +4,6 @@
using PixiEditor.Models.Layers;
using PixiEditor.Models.Position;
using System.Collections.Generic;
using System.Diagnostics;
using System.Windows.Media;

namespace PixiEditor.Models.Tools.Tools
Expand All @@ -24,12 +23,7 @@ public FloodFill(BitmapManager bitmapManager)

public override LayerChange[] Use(Layer layer, List<Coordinates> coordinates, Color color)
{
Stopwatch sw = new Stopwatch();
sw.Start();
var res = Only(LinearFill(layer, coordinates[0], color), layer);
sw.Stop();
Trace.WriteLine($"Elapsed: {sw.ElapsedMilliseconds}");
return res;
return Only(LinearFill(layer, coordinates[0], color), layer);
}

public BitmapPixelChanges LinearFill(Layer layer, Coordinates startingCoords, Color newColor)
Expand Down

0 comments on commit a6d0ba5

Please sign in to comment.