commit | 0be3b7c95d98215c27485758208417f8adc2d801 | [log] [tgz] |
---|---|---|
author | Tarun Nainani <tnainani@codeaurora.org> | Thu Jul 03 01:17:12 2014 -0700 |
committer | Tarun Nainani <tnainani@codeaurora.org> | Tue Jul 22 12:38:28 2014 -0700 |
tree | 500b2b8dda24d527029f5f42e2aa8ff00c551440 | |
parent | fb0cafbf4eebd2b29b114ad9dece83103bfc254d [diff] |
Fix 'createScreenshot' creating skewed thumbnail In potrait mode (height > width) logic to calculate source rect height was incorrect. Instead of using h = w * aspect ratio, the correct equation is h = w * (1/aspect ratio). Due to incorrect equation source aspect ratio was different than that of dest thumnail hence causing thumbnail image to be skewed. Fixed issue by inversing the aspect ratio when calculating height. Change-Id: Iff65d9c56f3c38119712b01cdd18ce77f52e7323