Author: tack
Date: Fri Jan  5 17:58:36 2007
New Revision: 2357

Modified:
   trunk/imlib2/src/image.py

Log:
Fix silliness. :)


Modified: trunk/imlib2/src/image.py
==============================================================================
--- trunk/imlib2/src/image.py   (original)
+++ trunk/imlib2/src/image.py   Fri Jan  5 17:58:36 2007
@@ -273,16 +273,10 @@
         src_aspect = float(self.width) / self.height
         dst_aspect = float(w) / h
 
-        if src_aspect >= 1.0:
-            if dst_aspect > src_aspect:
-                w = h * src_aspect
-            else:
-                h = w / src_aspect
+        if dst_aspect > src_aspect:
+            w = h * src_aspect
         else:
-            if dst_aspect > src_aspect:
-                w = h * src_aspect
-            else:
-                h = w / src_aspect
+            h = w / src_aspect
 
         if (self.width, self.height) == (int(w), int(h)):
             # No scale, just copy.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to