Commit 3728d7df1fd945e569f3905b087a3edc0bd797cc

Authored by Ferran Sole
1 parent 63dbf766

Bug fix: Image Scaling Grid example doesn't show "crossbars"

Change-Id: I9dbf15948401036c144535596960b4b2271fc489
examples/image-scaling-and-filtering/image-scaling-and-filtering-example.cpp
@@ -194,14 +194,14 @@ public: @@ -194,14 +194,14 @@ public:
194 194
195 mHeightBox = Toolkit::ImageView::New( heightBackground ); 195 mHeightBox = Toolkit::ImageView::New( heightBackground );
196 mHeightBox.SetOpacity( 0.2f ); 196 mHeightBox.SetOpacity( 0.2f );
197 - stage.Add( mHeightBox ); 197 + background.Add( mHeightBox );
198 198
199 mWidthBox = Toolkit::ImageView::New( widthBackground ); 199 mWidthBox = Toolkit::ImageView::New( widthBackground );
200 mWidthBox.SetOpacity( 0.2f ); 200 mWidthBox.SetOpacity( 0.2f );
201 - stage.Add( mWidthBox ); 201 + background.Add( mWidthBox );
202 202
203 mDesiredBox = Toolkit::ImageView::New( desiredBackground ); 203 mDesiredBox = Toolkit::ImageView::New( desiredBackground );
204 - stage.Add( mDesiredBox ); 204 + background.Add( mDesiredBox );
205 205
206 mDesiredBox.SetSize( stage.GetSize() * mImageStageScale ); 206 mDesiredBox.SetSize( stage.GetSize() * mImageStageScale );
207 mDesiredBox.SetParentOrigin( ParentOrigin::CENTER ); 207 mDesiredBox.SetParentOrigin( ParentOrigin::CENTER );
@@ -247,7 +247,7 @@ public: @@ -247,7 +247,7 @@ public:
247 mImageActor.SetSortModifier(5.f); 247 mImageActor.SetSortModifier(5.f);
248 248
249 // Display the actor on the stage 249 // Display the actor on the stage
250 - stage.Add( mImageActor ); 250 + background.Add( mImageActor );
251 251
252 mImageActor.SetSize( stage.GetSize() * mImageStageScale ); 252 mImageActor.SetSize( stage.GetSize() * mImageStageScale );
253 253