Cleanup and simplify calculation and drawing 47/9247/1
authorDylan Simon <dylan@dylex.net>
Sun, 4 Oct 2009 21:39:07 +0000 (17:39 -0400)
committerSung-Jin Park <sj76.park@samsung.com>
Tue, 3 Sep 2013 03:38:01 +0000 (23:38 -0400)
commit42783333f56e6e1947f22381ece26d5352f65c9f
treed04a73beb4e4086c4ba586d056c8199614e83d2d
parent8a57325cfafc016ab228775c0ea9df9b5ea49fdd
Cleanup and simplify calculation and drawing

By transforming the eyes’s space when calculating where to place the
pupils, the code effectively assumed that EYE_HEIGHT == EYE_WIDTH.

Make this assumption explicit and remove calculations which
are therefore unnecessary.

Clean up related code and, consequently, reduced redraw time
and tearing.

Change-Id: Iaa0f9684d902fbc3d4ca45118ebb811a57a11a89
Signed-off-by: Dylan Simon <dylan@dylex.net>
Signed-off-by: James Cloos <cloos@jhcloos.com>
Eyes.c