diff options
author | Dylan Simon <dylan@dylex.net> | 2009-10-04 17:39:07 -0400 |
---|---|---|
committer | Sung-Jin Park <sj76.park@samsung.com> | 2013-09-02 23:38:01 -0400 |
commit | 42783333f56e6e1947f22381ece26d5352f65c9f (patch) | |
tree | d04a73beb4e4086c4ba586d056c8199614e83d2d /Eyes.h | |
parent | 8a57325cfafc016ab228775c0ea9df9b5ea49fdd (diff) | |
download | xeyes-42783333f56e6e1947f22381ece26d5352f65c9f.tar.gz xeyes-42783333f56e6e1947f22381ece26d5352f65c9f.tar.bz2 xeyes-42783333f56e6e1947f22381ece26d5352f65c9f.zip |
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>
Diffstat (limited to 'Eyes.h')
0 files changed, 0 insertions, 0 deletions