[Tizen] Fix the incorrect size in OnRotation 66/213966/1 submit/tizen/20190917.064531
authorWonsik Jung <sidein@samsung.com>
Tue, 17 Sep 2019 04:54:49 +0000 (13:54 +0900)
committerWonsik Jung <sidein@samsung.com>
Tue, 17 Sep 2019 04:59:26 +0000 (13:59 +0900)
Incorrect width(rotaion angle) is filled to resized callback function.
Maybe human error.

Change-Id: Ia07b41adaafa0e30aec3971ddb9bb3b069b58c98

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