[Tizen] Fix the incorrect size in OnRotation
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Tue, 8 Oct 2019 05:27:08 +0000 (14:27 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Tue, 8 Oct 2019 05:27:11 +0000 (14:27 +0900)
This reverts commit a9d9d286570a50ec144b3ea3cb0ac507a4328a40.

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()