From 33854344896574c90e539bccf4e1905c0c4b77e5 Mon Sep 17 00:00:00 2001 From: Ferran Sole Date: Tue, 14 Jul 2015 10:53:37 +0100 Subject: [PATCH] Changes following the patch: "Changed draw ordering to take into account the depth of the node in the hierarchy" --- examples/cube-transition-effect/cube-transition-effect-example.cpp | 1 + examples/item-view/item-view-example.cpp | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/examples/cube-transition-effect/cube-transition-effect-example.cpp b/examples/cube-transition-effect/cube-transition-effect-example.cpp index fcd3680..a948f30 100644 --- a/examples/cube-transition-effect/cube-transition-effect-example.cpp +++ b/examples/cube-transition-effect/cube-transition-effect-example.cpp @@ -238,6 +238,7 @@ void CubeTransitionApp::OnInit( Application& application ) // Creates a default view with a default tool bar, the view is added to the stage. mContent = DemoHelper::CreateView( application, mView, mToolBar, "", TOOLBAR_IMAGE, "" ); + mContent.SetBehavior( Layer::LAYER_3D ); // Add an effect-changing button on the right of the tool bar. mImageWave = ResourceImage::New( EFFECT_WAVE_IMAGE ); diff --git a/examples/item-view/item-view-example.cpp b/examples/item-view/item-view-example.cpp index 24b78a4..51a6588 100644 --- a/examples/item-view/item-view-example.cpp +++ b/examples/item-view/item-view-example.cpp @@ -298,6 +298,7 @@ public: // Display item view on the stage stage.Add( mItemView ); + stage.GetRootLayer().SetBehavior( Layer::LAYER_3D ); // Create the layouts mSpiralLayout = DefaultItemLayout::New( DefaultItemLayout::SPIRAL ); -- libgit2 0.21.4