]> O.S.I.I.S - jp/crow.git/commitdiff
remove Paint override in scroller that was painting child 2 times
authorjpbruyere <jp.bruyere@hotmail.com>
Thu, 4 Feb 2016 17:41:25 +0000 (18:41 +0100)
committerjpbruyere <jp.bruyere@hotmail.com>
Thu, 4 Feb 2016 17:41:25 +0000 (18:41 +0100)
src/GraphicObjects/Scroller.cs

index be6e89933890d07806d8dfae02a56b745d98b996..1171d8d9921ea02ba71bcc1118f19c70eb3c2065 100644 (file)
@@ -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();            
-               }
     }
 }