From: thurban Date: Mon, 1 May 2023 09:09:12 +0000 (+0200) Subject: Fix for overlapping areas in transparent mode (#1226) X-Git-Tag: v1.9.0~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d8923c5c01904880c218fd94844eb8ea21f815f0;p=thirdparty%2Frrdtool-1.x.git Fix for overlapping areas in transparent mode (#1226) * Fix for overlapping areas in transparent mode --- diff --git a/CHANGES b/CHANGES index f5dbe3ca..e8d3239d 100644 --- a/CHANGES +++ b/CHANGES @@ -4,6 +4,7 @@ RRDtool - master ... Bugfixes -------- +* Fix ytop and ybase adjustments for overlaping area issue on transparent areas * Suppress warnings of implicit fall through * Update tarball download link in doc * Fix unsigned integer overflow in rrdtool first. Add test for rrd_first() diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 2d7fb170..b32d4508 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -4295,14 +4295,14 @@ int graph_paint_timestring( ybase = extra; } if (im->slopemode == 0) { - backY[++idxI] = ybase - 0.2; + backY[++idxI] = ybase; backX[idxI] = ii + im->xorigin - 1; - foreY[idxI] = ytop + 0.2; + foreY[idxI] = ytop; foreX[idxI] = ii + im->xorigin - 1; } - backY[++idxI] = ybase - 0.2; + backY[++idxI] = ybase; backX[idxI] = ii + im->xorigin; - foreY[idxI] = ytop + 0.2; + foreY[idxI] = ytop; foreX[idxI] = ii + im->xorigin; } /* close up any remaining area */