From: jpbruyere Date: Wed, 20 Jan 2016 07:04:52 +0000 (+0100) Subject: Use of Slot.Dimentions in paint instead of Parent.Context(slot) X-Git-Tag: 0.3~94 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=e3bb9b00218d683cd5fc5b98ae8882d8d4eec8f8;p=jp%2Fcrow.git Use of Slot.Dimentions in paint instead of Parent.Context(slot) --- diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index fe707957..b5884d5e 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -748,7 +748,7 @@ namespace go Rectangle rb = Parent.ContextCoordinates(Slot); - using (ImageSurface source = new ImageSurface(bmp, Format.Argb32, rb.Width, rb.Height, 4 * Slot.Width)) { + using (ImageSurface source = new ImageSurface(bmp, Format.Argb32, Slot.Width, Slot.Height, 4 * Slot.Width)) { if (this.Background == Color.Clear) { ctx.Save (); ctx.Operator = Operator.Clear;