diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2017-01-01 18:23:48 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2017-01-01 18:23:48 +0100 |
| commit | 7fa6c6ca89e7a3aeadd815867de8a2a3b955134a (patch) | |
| tree | 4ffc82920a7e417a18d420d06469a5af51e39495 /src/Interface.cs | |
| parent | 6f5e0f0a2f4ea382626703c673f5df8d7c9a972b (diff) | |
code clean and debug
Diffstat (limited to 'src/Interface.cs')
| -rw-r--r-- | src/Interface.cs | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/src/Interface.cs b/src/Interface.cs index b90f2ac9..0cff9b87 100644 --- a/src/Interface.cs +++ b/src/Interface.cs @@ -101,10 +101,10 @@ namespace Crow // if (g.RegisteredLayoutings != LayoutingType.None) // return; ILayoutable l = g; - while (l.Parent != null) - l = l.Parent; - if (!(l is Interface)) - return; +// while (l.Parent != null) +// l = l.Parent; +// if (!(l is Interface)) +// return; lock (DrawingQueue) { if (g.IsQueueForRedraw) @@ -412,15 +412,9 @@ namespace Crow while (DrawingQueue.Count > 0) { GraphicObject g = DrawingQueue.Dequeue (); g.IsQueueForRedraw = false; - try { - if (g.Parent == null) - continue; - g.Parent.RegisterClip (g.LastPaintedSlot); - if (g.getSlot () != g.LastPaintedSlot) - g.Parent.RegisterClip (g.getSlot ()); - } catch (Exception ex) { - Debug.WriteLine ("Error Register Clip: " + ex.ToString ()); - } + g.Parent.RegisterClip (g.LastPaintedSlot); + if (g.getSlot () != g.LastPaintedSlot) + g.Parent.RegisterClip (g.getSlot ()); } } #if MEASURE_TIME |