summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authordillo <dillo@pkgsrc.org>2005-12-18 20:26:03 +0000
committerdillo <dillo@pkgsrc.org>2005-12-18 20:26:03 +0000
commita2504c254d13a7bec7d957a0ef926c57ad474f81 (patch)
tree14d9ebcc3548a022363b1416bd1de968861c5324 /games
parent7f1790f2ef87ad8fe2819a8f821ad18c20a9c92d (diff)
downloadpkgsrc-a2504c254d13a7bec7d957a0ef926c57ad474f81.tar.gz
Move variable declaration to top of function. Fixes compile error
noted on recent 1.6.2/i386 bulk build by kristerw.
Diffstat (limited to 'games')
-rw-r--r--games/gtklevel9/distinfo3
-rw-r--r--games/gtklevel9/patches/patch-ab17
2 files changed, 19 insertions, 1 deletions
diff --git a/games/gtklevel9/distinfo b/games/gtklevel9/distinfo
index c616c6e6f44..a48675fc42f 100644
--- a/games/gtklevel9/distinfo
+++ b/games/gtklevel9/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2005/11/01 14:56:14 dillo Exp $
+$NetBSD: distinfo,v 1.2 2005/12/18 20:26:03 dillo Exp $
SHA1 (Level9_4.0_Source.zip) = 7bbd0a675aa66067745b2d850d07eaa2b08fd452
RMD160 (Level9_4.0_Source.zip) = 224b2b3414da53e8dd7c3a253468b078c09a0e4f
Size (Level9_4.0_Source.zip) = 294428 bytes
SHA1 (patch-aa) = 304bcbbac41d95e93ead470bbb2d67234c0a2f76
+SHA1 (patch-ab) = 1944199a06221641f0aa3bf32fb8d3aee4206837
diff --git a/games/gtklevel9/patches/patch-ab b/games/gtklevel9/patches/patch-ab
new file mode 100644
index 00000000000..f9966af33e4
--- /dev/null
+++ b/games/gtklevel9/patches/patch-ab
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.1 2005/12/18 20:26:03 dillo Exp $
+
+--- graphics.c.orig 2005-07-31 15:56:04.000000000 +0200
++++ graphics.c
+@@ -370,10 +370,11 @@ void os_drawline (int x1, int y1, int x2
+ int x_step, y_step;
+ int err, delta_err;
+ int x, y;
++ gboolean steep;
+
+ animationCost++;
+
+- gboolean steep = abs (y2 - y1) > abs (x2 - x1);
++ steep = abs (y2 - y1) > abs (x2 - x1);
+
+ if (steep)
+ {