From 7cad40a65c3a013e2a0882bd1d20b1d6f78df5bf Mon Sep 17 00:00:00 2001 From: InHong Han Date: Fri, 27 May 2022 10:43:23 +0900 Subject: [PATCH] Modified to avoid duplicate rendering Change-Id: Ic10eca8f38d65f57cf275cff6bfb5d4f0fc7c62a --- scl/sclcontroller.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scl/sclcontroller.cpp b/scl/sclcontroller.cpp index 6b261cd..c99ca56 100644 --- a/scl/sclcontroller.cpp +++ b/scl/sclcontroller.cpp @@ -302,7 +302,8 @@ CSCLController::process_rotation_change(const SCLRotation rotation) mode = DISPLAYMODE_PORTRAIT; } - //if (mode == context->get_display()) return FALSE; + if (mode == context->get_display_mode()) return FALSE; + context->set_display_mode(mode); context->set_rotation(rotation); /* FIXME : NEWXML temporary commenting out */ -- 2.34.1