Update of /cvsroot/freevo/freevo/src/skins/main In directory sc8-pr-cvs1:/tmp/cvs-serv3803
Modified Files: skin_utils.py Log Message: fix aspect calc to check if correction is needed Index: skin_utils.py =================================================================== RCS file: /cvsroot/freevo/freevo/src/skins/main/skin_utils.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** skin_utils.py 24 Aug 2003 05:57:50 -0000 1.5 --- skin_utils.py 3 Sep 2003 21:13:48 -0000 1.6 *************** *** 10,13 **** --- 10,16 ---- # ----------------------------------------------------------------------- # $Log$ + # Revision 1.6 2003/09/03 21:13:48 dischi + # fix aspect calc to check if correction is needed + # # Revision 1.5 2003/08/24 05:57:50 gsbarbieri # Try to use playlist icon based on parent directory display_type, so in a *************** *** 141,148 **** i_w, i_h = image.get_size() ! aspect = max(float(i_h)/i_w, float(i_w)/i_h) keep_geo = 0 ! if type == 'audio' and aspect < 1.3: # this is an audio cover m = min(height, width) --- 144,151 ---- i_w, i_h = image.get_size() ! aspect = float(i_h)/i_w keep_geo = 0 ! if type == 'audio' and aspect < 1.3 and aspect > 0.8: # this is an audio cover m = min(height, width) *************** *** 150,154 **** i_h = m ! elif type == 'video' and aspect > 1.3: # video cover, set aspect 7:5 i_w = 5 --- 153,157 ---- i_h = m ! elif type == 'video' and aspect > 1.3 and aspect < 1.6: # video cover, set aspect 7:5 i_w = 5 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Freevo-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-cvslog