From ce83bbe3db755828faea0490ede53f8889ba0254 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Thu, 22 Mar 2012 22:39:19 +0100 Subject: menu/drawable_control: added size to controls and clip drawing if requested if requested (set_clipping_required) DrawableControl will use ClippingHelper to setup glScissor befor drawing the content. container will request clipping by default --- src/menu/container.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/menu/container.cpp') diff --git a/src/menu/container.cpp b/src/menu/container.cpp index 05cb9fd4..4ac26548 100644 --- a/src/menu/container.cpp +++ b/src/menu/container.cpp @@ -35,11 +35,13 @@ namespace usdx Container::Container(Container* owner) : DrawableControl(owner), frame(NULL) { + set_clipping_required(true); } Container::Container(Container* owner, const ContainerHelper& add) : DrawableControl(owner, add), frame(NULL) { + set_clipping_required(true); } Container::~Container() -- cgit v1.2.3