Update of /cvsroot/freevo/freevo/src/skins/main
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12994

Modified Files:
        area.py 
Log Message:
keep aspect for scaling

Index: area.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/skins/main/area.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** area.py     11 Feb 2004 14:41:05 -0000      1.32
--- area.py     12 Feb 2004 16:59:12 -0000      1.33
***************
*** 28,31 ****
--- 28,34 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.33  2004/02/12 16:59:12  dischi
+ # keep aspect for scaling
+ #
  # Revision 1.32  2004/02/11 14:41:05  dischi
  # add all <background> images to the bgimage list
***************
*** 700,704 ****
          if not cimage:
              cimage = osd.loadbitmap(image)
!             if cimage and w > 0 and h > 0:
                  cimage = pygame.transform.scale(cimage, (w, h))
              self.imagecache[cname] = cimage
--- 703,713 ----
          if not cimage:
              cimage = osd.loadbitmap(image)
!             if not cimage:
!                 return
!             if w == -1:
!                 w = h  * cimage.get_width() / cimage.get_height()
!             if h == -1:
!                 h = w  * cimage.get_height() / cimage.get_width()
!             if w > 0 and h > 0:
                  cimage = pygame.transform.scale(cimage, (w, h))
              self.imagecache[cname] = cimage



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to