author | sky zhou <sky.zhou@amlogic.com> | 2020-04-27 11:41:14 (GMT) |
---|---|---|
committer | sky zhou <sky.zhou@amlogic.com> | 2020-05-21 11:01:14 (GMT) |
commit | 22293984a60832ea5c29186e63aba7d29bd450df (patch) | |
tree | dd79df9c62e39fbeedee189d99e8898cb49eb71d | |
parent | 5ac77fb8909c26eee8bd8d6e269434c772d77f48 (diff) | |
download | hwcomposer-22293984a60832ea5c29186e63aba7d29bd450df.zip hwcomposer-22293984a60832ea5c29186e63aba7d29bd450df.tar.gz hwcomposer-22293984a60832ea5c29186e63aba7d29bd450df.tar.bz2 |
hwc/display: fix cursor plane stride error. [1/1]
PD#SWPL-24182
Problem:
cursor display error
Solution:
use stride when do cursor content copy
Verify:
verify on anning
Change-Id: Ib95424cd8ed79fb28b620decd3d4d105d1246851
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
-rw-r--r-- | common/display/CursorPlane.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/display/CursorPlane.cpp b/common/display/CursorPlane.cpp index a923cd2..2169e62 100644 --- a/common/display/CursorPlane.cpp +++ b/common/display/CursorPlane.cpp @@ -109,7 +109,7 @@ int32_t CursorPlane::setPlane( int32_t CursorPlane::updateCursorBuffer( std::shared_ptr<DrmFramebuffer> & fb) { int cbwidth = - HWC_ALIGN(CUSOR_BPP * mPlaneInfo.buf_w, CUSOR_BPP * 8) /CUSOR_BPP; + HWC_ALIGN(CUSOR_BPP * mPlaneInfo.stride, CUSOR_BPP * 8) / CUSOR_BPP; if (mPlaneInfo.info.xres != (uint32_t)cbwidth || mPlaneInfo.info.yres != (uint32_t)mPlaneInfo.buf_h) { |