From 428a452816df456653d5d7d78c3e7ca890f68e82 Mon Sep 17 00:00:00 2001 From: Xiangyin Ma Date: Mon, 23 May 2016 17:22:09 +0100 Subject: [PATCH] Use sync image loading in text scrolling example Change-Id: I1a9bd9116c491f158fd2a1bf64657a5123376407 --- examples/text-scrolling/text-scrolling-example.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/text-scrolling/text-scrolling-example.cpp b/examples/text-scrolling/text-scrolling-example.cpp index e9fa056..ef479a7 100644 --- a/examples/text-scrolling/text-scrolling-example.cpp +++ b/examples/text-scrolling/text-scrolling-example.cpp @@ -128,7 +128,11 @@ public: const Size mTargetActorSize( mStageSize.width, DESKTOP_SIZE.height ); // Create Desktop - ImageView desktop = ImageView::New( DESKTOP_IMAGE ); + ImageView desktop = ImageView::New(); + Property::Map imageMap; + imageMap[ "url" ] = DESKTOP_IMAGE; + imageMap[ "synchronousLoading" ] = true; + desktop.SetProperty( ImageView::Property::IMAGE, imageMap ); desktop.SetName("desktopActor"); desktop.SetAnchorPoint( AnchorPoint::TOP_LEFT ); desktop.SetResizePolicy( ResizePolicy::FIXED, Dimension::ALL_DIMENSIONS ); -- 2.7.4