From ddc005ed8b0523954c499c817336d973d3b23c3e Mon Sep 17 00:00:00 2001 From: Amy Bowersox Date: Tue, 10 Dec 2019 13:42:40 -0700 Subject: [PATCH] logging needed work :) --- src/devctxt.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/devctxt.c b/src/devctxt.c index c501005..f98c2bb 100755 --- a/src/devctxt.c +++ b/src/devctxt.c @@ -44,7 +44,7 @@ static BOOL line_clip(PINT32 output, INT32 x1, INT32 y1, INT32 x2, INT32 y2, INT } if (outcode1 == 0) { - Log(LDEBUG, "exchange points") + Log(LDEBUG, "exchange points"); tmp = x1; x1 = x2; x2 = tmp; @@ -59,25 +59,25 @@ static BOOL line_clip(PINT32 output, INT32 x1, INT32 y1, INT32 x2, INT32 y2, INT { x1 += (x2 - x1) * (ymin - y1) / (y2 - y1); y1 = ymin; - Log.debug("clipped against top to point (%d, %d)", x1 >> 16, y1 >> 16); + Log(LDEBUG, "clipped against top to point (%d, %d)", x1 >> 16, y1 >> 16); } else if (outcode1 & 0x4) { x1 += (x2 - x1) * (ymax - y1) / (y2 - y1); y1 = ymax; - Log.debug("clipped against bottom to point (%d, %d)", x1 >> 16, y1 >> 16); + Log(LDEBUG, "clipped against bottom to point (%d, %d)", x1 >> 16, y1 >> 16); } else if (outcode1 & 0x2) { y1 += (y2 - y1) * (xmax - x1) / (x2 - x1); x1 = xmax; - Log.debug("clipped against right to point (%d, %d)", x1 >> 16, y1 >> 16); + Log(LDEBUG, "clipped against right to point (%d, %d)", x1 >> 16, y1 >> 16); } else if (outcode1 & 0x1) { y1 += (y2 - y1) * (xmin - x1) / (x2 - x1); x1 = xmin; - Log.debug("clipped against left to point (%d, %d)", x1 >> 16, y1 >> 16); + Log(LDEBUG, "clipped against left to point (%d, %d)", x1 >> 16, y1 >> 16); } } Log(LDEBUG, "final line is from (%d, %d) to (%d, %d)", x1 >> 16, y1 >> 16, x2 >> 16, y2 >> 16);