From 3a93cf20e3de5969dd1b2af1fa254347b8d8e476 Mon Sep 17 00:00:00 2001 From: Jiyun Yang Date: Fri, 30 Aug 2019 16:39:07 +0900 Subject: [PATCH] [Tizen] Temporarily revert CameraActor behavior on zero size initialization Change-Id: I17de867025a46cc728b650ef0fd6a5bcda6ba712 Signed-off-by: Jiyun Yang --- dali/internal/event/actors/camera-actor-impl.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dali/internal/event/actors/camera-actor-impl.cpp b/dali/internal/event/actors/camera-actor-impl.cpp index 715781e..2afd2eb 100644 --- a/dali/internal/event/actors/camera-actor-impl.cpp +++ b/dali/internal/event/actors/camera-actor-impl.cpp @@ -372,16 +372,16 @@ bool CameraActor::GetInvertYAxis() const void CameraActor::SetPerspectiveProjection( const Size& size ) { + float width = size.width; + float height = size.height; + if( ( size.width < Math::MACHINE_EPSILON_1000 ) || ( size.height < Math::MACHINE_EPSILON_1000 ) ) { - // Not allowed to set the canvas size to be 0. - DALI_LOG_ERROR( "Canvas size can not be 0\n" ); - return; + Size stageSize = Dali::Stage::GetCurrent().GetSize(); + width = stageSize.width; + height = stageSize.height; } - float width = size.width; - float height = size.height; - float nearClippingPlane; float farClippingPlane; float cameraZ; -- 2.7.4