From: Sunghyun kim Date: Tue, 1 Oct 2019 07:37:39 +0000 (+0900) Subject: [Tizen] Fix the incorrect size in OnRotation X-Git-Tag: accepted/tizen/unified/20191004.003531~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=83c7013db6be44a7c97e34ec54095aef437d9520;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git [Tizen] Fix the incorrect size in OnRotation This reverts commit d8f1589b43358d36a78519c054dfca77dd6e0fb2. Change-Id: I532dca0408ce40a4a54cce7ddb3856466685f126 --- diff --git a/dali/internal/window-system/common/window-impl.cpp b/dali/internal/window-system/common/window-impl.cpp index a5f7d0f..fdb01bd 100644 --- a/dali/internal/window-system/common/window-impl.cpp +++ b/dali/internal/window-system/common/window-impl.cpp @@ -652,14 +652,14 @@ void Window::OnRotation( const RotationEvent& rotation ) SurfaceResized( forceUpdate ); - mAdaptor->SurfaceResizePrepare( mSurface.get(), Adaptor::SurfaceSize( mRotationAngle, mWindowHeight ) ); + mAdaptor->SurfaceResizePrepare( mSurface.get(), Adaptor::SurfaceSize( mWindowWidth, mWindowHeight ) ); // Emit signal Dali::Window handle( this ); - mResizedSignal.Emit( Dali::Window::WindowSize( mRotationAngle, mWindowHeight ) ); - mResizeSignal.Emit( handle, Dali::Window::WindowSize( mRotationAngle, mWindowHeight ) ); + mResizedSignal.Emit( Dali::Window::WindowSize( mWindowWidth, mWindowHeight ) ); + mResizeSignal.Emit( handle, Dali::Window::WindowSize( mWindowWidth, mWindowHeight ) ); - mAdaptor->SurfaceResizeComplete( mSurface.get(), Adaptor::SurfaceSize( mRotationAngle, mWindowHeight ) ); + mAdaptor->SurfaceResizeComplete( mSurface.get(), Adaptor::SurfaceSize( mWindowWidth, mWindowHeight ) ); } void Window::OnPause()