From 8f3c0e6d8c6884719c7e60fbc3b9132207ded9a9 Mon Sep 17 00:00:00 2001 From: Sushil Chauhan Date: Tue, 10 Apr 2012 11:48:13 -0700 Subject: [PATCH] liboverlay: Remove evening-out of layer destination coords. Evening-out of layer destination coords causes a noticeable up & down shift in the screen when video layer drawing switches between Overlay and GPU. This is most easily observed during video playback or pause, when a UI layer (like Menu) is displayed / hidden. Remove evening-out of layer destination coords to fix the video layer "twitching" issue. Change-Id: I3f43b53a7609c9ad8cc983c353fba6dc97460158 CRs-fixed: 348856 350073 --- liboverlay/overlayLib.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/liboverlay/overlayLib.cpp b/liboverlay/overlayLib.cpp index 2d18d97..2e7dcf4 100755 --- a/liboverlay/overlayLib.cpp +++ b/liboverlay/overlayLib.cpp @@ -504,9 +504,7 @@ bool Overlay::setPosition(int x, int y, uint32_t w, uint32_t h) { overlay_rect priDest; int currX, currY; uint32_t currW, currH; - // Set even destination co-ordinates - EVEN_OUT(x); EVEN_OUT(y); - EVEN_OUT(w); EVEN_OUT(h); + objOvCtrlChannel[VG0_PIPE].getPosition(currX, currY, currW, currH); priDest.x = x, priDest.y = y; priDest.w = w, priDest.h = h;