From d7add45e8e6049c34ad91cd598f2236b3af3bf89 Mon Sep 17 00:00:00 2001 From: Jeykumar Sankaran Date: Fri, 26 Aug 2011 18:16:21 -0700 Subject: [PATCH] Fix dynamic composition on framebuffer rotation This change fixes a bug in detecting fullscreen condition for dynamic composition. Change-Id: Ieadaf970061badc1d2f876560c1118fccf3a420a --- libhwcomposer/hwcomposer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libhwcomposer/hwcomposer.cpp b/libhwcomposer/hwcomposer.cpp index 0dde148..49ca41c 100755 --- a/libhwcomposer/hwcomposer.cpp +++ b/libhwcomposer/hwcomposer.cpp @@ -326,7 +326,7 @@ static bool isFullScreenUpdate(const framebuffer_device_t* fbDev, const hwc_laye int transform = list->hwLayers[0].transform; - if(transform == (HWC_TRANSFORM_ROT_90 | HWC_TRANSFORM_ROT_270)) + if(transform & (HWC_TRANSFORM_ROT_90 | HWC_TRANSFORM_ROT_270)) return ((fb_w == h) && (fb_h == w)); else return ((fb_h == h) && (fb_w == w)); @@ -346,7 +346,7 @@ static bool isFullScreenUpdate(const framebuffer_device_t* fbDev, const hwc_laye int h2 = rect_2.bottom - rect_2.top; if(transform_1 == transform_2) { - if(transform_1 == (HWC_TRANSFORM_ROT_90 | HWC_TRANSFORM_ROT_270)) { + if(transform_1 & (HWC_TRANSFORM_ROT_90 | HWC_TRANSFORM_ROT_270)) { if((fb_w == (w1 + w2)) && (fb_h == h1) && (fb_h == h2)) return true; } else {