From f013cadfd04d71163bffd4a12c1f71309e16957c Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Thu, 4 Feb 2016 18:41:25 +0100 Subject: [PATCH] remove Paint override in scroller that was painting child 2 times --- src/GraphicObjects/Scroller.cs | 29 ----------------------------- 1 file changed, 29 deletions(-) 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(); - } } } -- 2.47.3