diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-03-05 20:41:26 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-03-05 20:41:26 +0100 |
| commit | 63e3afd99db6ec60e28c12c49c8d0ae9b5d7bd7b (patch) | |
| tree | 8fe8d583cc08b795304d8e918f04611747c8885e /src/GraphicObjects/PrivateContainer.cs | |
| parent | 3d9e22120b40a0a4eb470bc6ceb3de8879f74c8d (diff) | |
remove double buffered LayoutingQueue,use dirtyBmp for gl rendering
Diffstat (limited to 'src/GraphicObjects/PrivateContainer.cs')
| -rw-r--r-- | src/GraphicObjects/PrivateContainer.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/GraphicObjects/PrivateContainer.cs b/src/GraphicObjects/PrivateContainer.cs index 1aa39633..3a3d9067 100644 --- a/src/GraphicObjects/PrivateContainer.cs +++ b/src/GraphicObjects/PrivateContainer.cs @@ -95,10 +95,10 @@ namespace Crow if (child == null) return base.measureRawSize (lt); if (lt == LayoutingType.Width) - return child.QueuedLayoutings.HasFlag(LayoutingType.Width) ? + return child.RegisteredLayoutings.HasFlag(LayoutingType.Width) ? -1 : child.Slot.Size.Width + 2 * Margin; else - return child.QueuedLayoutings.HasFlag(LayoutingType.Height) ? + return child.RegisteredLayoutings.HasFlag(LayoutingType.Height) ? -1 : child.Slot.Size.Height + 2 * Margin; } public override bool UpdateLayout (LayoutingType layoutType) @@ -127,13 +127,13 @@ namespace Crow case LayoutingType.Width: if (child != null) { if (child.Visible) - child.EnqueueForLayouting (LayoutingType.X | LayoutingType.Width); + child.RegisterForLayouting (LayoutingType.X | LayoutingType.Width); } break; case LayoutingType.Height: if (child != null) { if (child.Visible) - child.EnqueueForLayouting (LayoutingType.Y | LayoutingType.Height); + child.RegisterForLayouting (LayoutingType.Y | LayoutingType.Height); } break; } @@ -148,11 +148,11 @@ namespace Crow break; case LayoutingType.Width: if (this.Bounds.Width < 0) - this.EnqueueForLayouting (LayoutingType.Width); + this.RegisterForLayouting (LayoutingType.Width); break; case LayoutingType.Height: if (this.Bounds.Height < 0) - this.EnqueueForLayouting (LayoutingType.Height); + this.RegisterForLayouting (LayoutingType.Height); break; } } |