From 5c90c8f9fc80c6802da0694710abf4e164b5360f Mon Sep 17 00:00:00 2001 From: Heeyong Song Date: Mon, 5 Sep 2022 18:21:17 +0900 Subject: [PATCH] [Tizen](Partial Update) Fix window rotation issue Set the dirty flag of the root layer when the surface size is changed Change-Id: I1f9fa4256b5bce9a1bc35f72a5229805620aa670 --- dali/internal/update/common/scene-graph-scene.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/dali/internal/update/common/scene-graph-scene.cpp b/dali/internal/update/common/scene-graph-scene.cpp index 1ad1c93..36b4049 100644 --- a/dali/internal/update/common/scene-graph-scene.cpp +++ b/dali/internal/update/common/scene-graph-scene.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -145,6 +145,11 @@ void Scene::SetSurfaceRect(const Rect& rect) { mSurfaceRect = rect; mSurfaceRectChanged = true; + + if(mRoot) + { + mRoot->SetUpdated(true); + } } const Rect& Scene::GetSurfaceRect() const @@ -155,6 +160,11 @@ const Rect& Scene::GetSurfaceRect() const void Scene::SetSurfaceOrientation(int32_t orientation) { mSurfaceOrientation = orientation; + + if(mRoot) + { + mRoot->SetUpdated(true); + } } int32_t Scene::GetSurfaceOrientation() const -- 2.7.4