From: Adeel Kazmi Date: Wed, 24 Jul 2019 18:54:51 +0000 (+0100) Subject: Ensure Scene is informed of the surface resizing in all cases X-Git-Tag: dali_1.4.30~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b076df2883dec82ac3b5df517a9a839b82f6aa9d;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git Ensure Scene is informed of the surface resizing in all cases Change-Id: I9e3838b8bd88f1b05e6a0924bb04293c93cb5e86 --- diff --git a/dali/internal/window-system/common/window-impl.cpp b/dali/internal/window-system/common/window-impl.cpp index 95f342b4a..948316470 100644 --- a/dali/internal/window-system/common/window-impl.cpp +++ b/dali/internal/window-system/common/window-impl.cpp @@ -507,6 +507,8 @@ void Window::SetPositionSize( PositionSize positionSize ) { Uint16Pair newSize( newRect.width, newRect.height ); + SurfaceResized(); + mAdaptor->SurfaceResizePrepare( mSurface.get(), newSize ); mResizedSignal.Emit( newSize ); @@ -581,6 +583,7 @@ void Window::OnFocusChanged( bool focusIn ) void Window::OnOutputTransformed() { PositionSize positionSize = mSurface->GetPositionSize(); + SurfaceResized(); mAdaptor->SurfaceResizePrepare( mSurface.get(), Adaptor::SurfaceSize( positionSize.width, positionSize.height ) ); mAdaptor->SurfaceResizeComplete( mSurface.get(), Adaptor::SurfaceSize( positionSize.width, positionSize.height ) ); } @@ -616,6 +619,8 @@ void Window::OnRotation( const RotationEvent& rotation ) mWindowSurface->RequestRotation( mRotationAngle, mWindowWidth, mWindowHeight ); + SurfaceResized(); + mAdaptor->SurfaceResizePrepare( mSurface.get(), Adaptor::SurfaceSize( mRotationAngle, mWindowHeight ) ); // Emit signal