openbsd-ports/www/wml/patches/patch-wml_include_des_imgbg_src
bernd 7d776e30ff Initial import of wml-2.0.9.
WML is a free and extensible Webdesigner's off-line HTML generation
toolkit. It consists of a control frontend driving up to nine backends
in a sequential pass-oriented filtering scheme.  Each backend provides
one particular core language.  For maximum power WML additionally ships
with a well-suited set of include files which provide higher-level
features built on top of the backend core languages.  While not trivial
and idiot proof WML provides most of the core features real hackers
always wanted for HTML generation.

Lots of testing and feedback from steven@. Thanks!
2006-07-14 16:12:12 +00:00

28 lines
800 B
Plaintext

$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;
}