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 get
{ {
x = x % this.pattern.Height; x = x % this.pattern.Width;
y = y % this.pattern.Width; y = y % this.pattern.Height;
return this.pattern[x, y]; return this.pattern[x, y];
} }

Loading…
Cancel
Save