Joel Holdsworth : tools: Fixed buildicon to support rectangular icons.

Alexandre Julliard julliard at winehq.org
Wed Apr 21 10:40:21 CDT 2010


Module: wine
Branch: master
Commit: 310561acbbb6b1fd5b746f90f934482413fa595f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=310561acbbb6b1fd5b746f90f934482413fa595f

Author: Joel Holdsworth <joel at airwebreathe.org.uk>
Date:   Tue Apr 20 23:50:58 2010 +0100

tools: Fixed buildicon to support rectangular icons.

---

 tools/buildicon |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/tools/buildicon b/tools/buildicon
index f5d32c0..eae13dc 100755
--- a/tools/buildicon
+++ b/tools/buildicon
@@ -79,10 +79,12 @@ sub svg_element_start
         # Extract SVG vector images
         my $x = $attr{'x'};
         my $y = $attr{'y'};
+        my $width = $attr{'width'};
+        my $height = $attr{'height'};
 
         if(defined($x) and defined($x)) {
             if($x =~ /\d*/ and $y =~ /\d*/) {
-                shell $convert, $renderedSVGFileName, "-crop", "${size}x${size}+$x+$y", $pngFileName;
+                shell $convert, $renderedSVGFileName, "-crop", "${width}x${height}+$x+$y", $pngFileName;
             }
         }
 




More information about the wine-cvs mailing list