X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Ftext-view%2Ftext-view-impl.cpp;h=4488b2f2b19790a81b710ca2c8a92ae2ef39108c;hp=aa30efdf6a1b6fdf06251805c73176ccc0d6d30b;hb=9a450f332b63de22521e3e2a70c3378e574ad77f;hpb=a3d76505e3ec1e7fc1d3657ac42890dce9a3e12a;ds=inline diff --git a/dali-toolkit/internal/controls/text-view/text-view-impl.cpp b/dali-toolkit/internal/controls/text-view/text-view-impl.cpp index aa30efd..4488b2f 100644 --- a/dali-toolkit/internal/controls/text-view/text-view-impl.cpp +++ b/dali-toolkit/internal/controls/text-view/text-view-impl.cpp @@ -702,6 +702,7 @@ void TextView::SetSnapshotModeEnabled( bool enable ) Actor self = Self(); self.Add( mOffscreenRootActor ); self.Add( mOffscreenImageActor ); + mOffscreenImageActor.SetScale(Vector3(1.f, -1.f, 1.f)); } else { @@ -1467,13 +1468,11 @@ void TextView::ProcessSnapshot( const Size& textViewSize ) mOffscreenCameraActor = CameraActor::New(); mOffscreenCameraActor.SetParentOrigin( ParentOrigin::CENTER ); mOffscreenCameraActor.SetAnchorPoint( AnchorPoint::CENTER ); + mOffscreenCameraActor.SetRotation(Degree(180.f), Vector3::YAXIS); mOffscreenCameraActor.SetType( Dali::Camera::FREE_LOOK ); // Inherits position from the offscreen root actor. mOffscreenRootActor.Add( mOffscreenCameraActor ); // camera to shoot the offscreen text - - // Images are expected to be from top to bottom, but OpenGL buffers are bottom to top - mOffscreenCameraActor.SetInvertYAxis( false ); } // Calculate camera parameters for current text size.