From: jpbruyere Date: Thu, 4 Feb 2016 17:41:25 +0000 (+0100) Subject: remove Paint override in scroller that was painting child 2 times X-Git-Tag: 0.3~68 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=f013cadfd04d71163bffd4a12c1f71309e16957c;p=jp%2Fcrow.git remove Paint override in scroller that was painting child 2 times --- diff --git a/src/GraphicObjects/Scroller.cs b/src/GraphicObjects/Scroller.cs index be6e8993..1171d8d9 100644 --- a/src/GraphicObjects/Scroller.cs +++ b/src/GraphicObjects/Scroller.cs @@ -193,35 +193,6 @@ namespace Crow HostContainer.redrawClip.AddRectangle (base.ScreenCoordinates(Slot)); } - public override void Paint(ref Cairo.Context ctx, Rectangles clip = null) - { - if (!Visible)//check if necessary?? - return; - - ctx.Save(); - - // ctx.Rectangle(ContextCoordinates(Slot)); - // ctx.Clip(); - // -// if (clip != null) -// clip.clip(ctx); - //clip.Srcoll (this); - - base.Paint (ref ctx, clip); - //clip to client zone - ctx.Rectangle(Parent.ContextCoordinates(ClientRectangle + Slot.Position)); - ctx.Clip(); - -// if (clip != null) -// clip.Srcoll (this); - // if (clip != null) - // clip.Rebase(this); - - if (Child != null) - Child.Paint(ref ctx, clip); - - ctx.Restore(); - } } }