pkgsrc/games/gtklevel9/patches/patch-ab
dillo a2504c254d Move variable declaration to top of function. Fixes compile error
noted on recent 1.6.2/i386 bulk build by kristerw.
2005-12-18 20:26:03 +00:00

17 lines
425 B
Text

$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)
{