[Tizen] Fix the incorrect size in OnRotation
authorSunghyun kim <scholb.kim@samsung.com>
Tue, 1 Oct 2019 07:37:39 +0000 (16:37 +0900)
committerSunghyun kim <scholb.kim@samsung.com>
Tue, 1 Oct 2019 07:37:53 +0000 (16:37 +0900)
This reverts commit d8f1589b43358d36a78519c054dfca77dd6e0fb2.

Change-Id: I532dca0408ce40a4a54cce7ddb3856466685f126

dali/internal/window-system/common/window-impl.cpp

index a5f7d0f..fdb01bd 100644 (file)
@@ -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()