commit | f080b795087c9e8baa12bb9a74ba43db90494fd8 | [log] [tgz] |
---|---|---|
author | Tatenda Chipeperekwa <tatendac@codeaurora.org> | Wed Mar 05 19:32:33 2014 -0800 |
committer | Tatenda Chipeperekwa <tatendac@codeaurora.org> | Thu Mar 06 11:51:55 2014 -0800 |
tree | a72b5e7b9c08ad774c66ba77d77b31520b57b637 | |
parent | a7dd23cc7e23835322b4265bc9ddfb6961039e5d [diff] |
hqd: Adjust resolution based on aspect ratio When the MDP downscale path is enabled we assign the primary resolution as the external display's dimensions. However, the aspect ratios of the external and primary displays can be different. As a result, directly assigning primary resolution could lead to an incorrect final image. We get around this by calculating a new resolution by keeping aspect ratio intact. Change-Id: I217718a5474862154fe60837fc6518408d2c32c7