Commits

Shlomi Fish committed 559d4f3

Got rid of WML::GD.

  • Participants
  • Parent commits 4887d68

Comments (0)

Files changed (2)

File src/wml_include/des/imgbg.src

 
 <protect pass=2>
 <:
-use WML::GD;
+use GD;
 
 #   general function for creating the image
 sub imgbg {
         $x = 0;
         if ($direction eq 'h') {
             #   horizontal image
-            $im = new WML::GD::Image($size, $pixels);
+            $im = GD::Image->new($size, $pixels);
             $dx = 1;
             $dy = 0;
         } else {
             #   vertical image
-            $im = new WML::GD::Image($pixels, $size);
+            $im = GD::Image->new($pixels, $size);
             $dx = 0;
             $dy = 1;
         }

File src/wml_include/des/imgdot.src

 
 <protect pass=2>
 <:
-use WML::GD;
+use GD;
 
 #   general function for creating a dot image
 sub imgdot {
 
     #   create image if it does not still exist
     if (not -f $file) {
-        $im = new WML::GD::Image($x, $y);
+        $im = GD::Image->new($x, $y);
         $col = $im->colorAllocate($r, $g, $b);
         $im->transparent($col) if $transp;
         eval "\$data = \$im->$format";