openbsd-ports/www/wml/patches/patch-wml_include_des_imgbg_src

28 lines
800 B
Plaintext
Raw Normal View History

$OpenBSD: patch-wml_include_des_imgbg_src,v 1.1.1.1 2006/07/14 16:12:14 bernd Exp $
--- wml_include/des/imgbg.src.orig Fri Jun 16 00:48:38 2006
+++ wml_include/des/imgbg.src Fri Jun 16 00:48:52 2006
@@ -13,7 +13,7 @@
<protect pass=2>
<:
-use WML::GD;
+use GD;
# general function for creating the image
sub imgbg {
@@ -48,12 +48,12 @@ sub imgbg {
$x = 0;
if ($direction eq 'h') {
# horizontal image
- $im = new WML::GD::Image($size, $pixels);
+ $im = new GD::Image($size, $pixels);
$dx = 1;
$dy = 0;
} else {
# vertical image
- $im = new WML::GD::Image($pixels, $size);
+ $im = new GD::Image($pixels, $size);
$dx = 0;
$dy = 1;
}