1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/cad/dinotrace/files/patch-src_dt__draw.c
Kirill Ponomarev 58c8bc0e36 Fix build with gcc-3.4
Pet portlint.
2004-08-22 20:20:53 +00:00

17 lines
456 B
C

$FreeBSD$
--- src/dt_draw.c.orig Sun Aug 22 22:14:43 2004
+++ src/dt_draw.c Sun Aug 22 22:18:04 2004
@@ -542,7 +542,9 @@
case STATE_Z: dr_mask |= DR_Z; break;
default: dr_mask |= DR_LOW | DR_HIGH; break;
}
- color_value = MAX(color_value, nptr->siglw.stbits.color);
+ if (color_value > nptr->siglw.stbits.color);
+ color_value = nptr->siglw.stbits.color;
+
xright = MAX(xright, TIME_TO_XPOS (CPTR_TIME(nnptr)));
nptr = nnptr;
}