Skip to content

Commit

Permalink
Merge pull request #64 from ncarrillo/fix-cairo-image-clip
Browse files Browse the repository at this point in the history
Fixing clipping issue with images using the Cairo backend
  • Loading branch information
grokys committed Jul 25, 2015
2 parents 60b6f23 + f741004 commit e4d2943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cairo/Perspex.Cairo/Media/DrawingContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void DrawImage(IBitmap bitmap, double opacity, Rect sourceRect, Rect dest
this.context.Save();
this.context.Scale(scaleX, scaleY);
this.context.SetSourceSurface(impl.Surface, (int)sourceRect.X, (int)sourceRect.Y);
this.context.Rectangle(destRect.ToCairo());
this.context.Rectangle(sourceRect.ToCairo());
this.context.Fill();
this.context.Restore();
}
Expand Down

0 comments on commit e4d2943

Please sign in to comment.