diff options
author | 2019-10-01 08:18:51 +0000 | |
---|---|---|
committer | 2019-10-01 08:18:51 +0000 | |
commit | 4503990bcb9ad8fbba3c34b5ef7db505106f3775 (patch) | |
tree | c015fc74dc0ec8cb98c7c56eead2e97a06d65030 /libs/gui/SurfaceComposerClient.cpp | |
parent | 464a526f2ebe0a81f415e97ea1c59e8f404eff53 (diff) | |
parent | 76f5f2fd479a700636e80b73a5357aa4f4f474a6 (diff) |
Merge "Fix the position set for setGeometry calculation."
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
-rw-r--r-- | libs/gui/SurfaceComposerClient.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp index 6b5021d1b4..547e5f1be2 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -1327,7 +1327,9 @@ SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setGeome break; } setMatrix(sc, matrix[0], matrix[1], matrix[2], matrix[3]); - setPosition(sc, x, y); + float offsetX = xScale * source.left; + float offsetY = yScale * source.top; + setPosition(sc, x - offsetX, y - offsetY); return *this; } |