Browse Source

get x=>width y=>height the correct way around.

af/merge-core
Scott Williams 9 years ago
parent
commit
c9d40d7611
  1. 4
      src/ImageSharp.Drawing/Brushes/PatternBrush{TColor}.cs

4
src/ImageSharp.Drawing/Brushes/PatternBrush{TColor}.cs

@ -128,8 +128,8 @@ namespace ImageSharp.Drawing.Brushes
{
get
{
x = x % this.pattern.Height;
y = y % this.pattern.Width;
x = x % this.pattern.Width;
y = y % this.pattern.Height;
return this.pattern[x, y];
}

Loading…
Cancel
Save