Browse Source

Fixing clipping issue with images using the Cairo backend

pull/64/head
Nelson Carrillo 11 years ago
parent
commit
f7410049b1
  1. 2
      Cairo/Perspex.Cairo/Media/DrawingContext.cs

2
Cairo/Perspex.Cairo/Media/DrawingContext.cs

@ -88,7 +88,7 @@ namespace Perspex.Cairo.Media
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();
}

Loading…
Cancel
Save