Hello all,

In elm_photocam.c:elm_photocam_zoom_set(), there are checks about the
calculated zoom value:
             if (wd->size.imw > wd->size.imh)
               z = wd->size.imw / pw;
             else
               z = wd->size.imh / ph;
             if      (z >= 8) z = 8;
             else if (z >= 4) z = 4;
             else if (z >= 2) z = 2;
             else             z = 1;

Why is the check/cap necessary?
On my target device, the QVGA LCD is smallish.  When displaying a
multi-megapixel image, the 'z' value above will be greater than 8 (say
11) in AUTO_FIT mode.  The zoom out handler gets '8' for wd->zoom and
uses it to calculate the new zoom factor.  That will cause the resized
image _larger_ than the AUTO_FIT one when _zoom_out_.  The behaviour
is strange.
I'm thinking of getting rid of it.  Thoughts?

Cheers,


brian

-- 
brian
------------------

Cool-Karaoke - The smallest recording studio, in your palm, open-sourced
http://cool-idea.com.tw/

iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to