summaryrefslogtreecommitdiff
path: root/fb.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-10-05 10:07:34 +0000
committerrodri <rgl@antares-labs.eu>2024-10-05 10:07:34 +0000
commita09cfff78a96a10169a30324b75554827945fed4 (patch)
treec5df96a71fc78492aecc6a51ef928e437ac828f0 /fb.c
parent91dfb6853d7b6d7ae49f54488b89e0eb73b5ff01 (diff)
downloadlibgraphics-a09cfff78a96a10169a30324b75554827945fed4.tar.gz
libgraphics-a09cfff78a96a10169a30324b75554827945fed4.tar.bz2
libgraphics-a09cfff78a96a10169a30324b75554827945fed4.zip
patch a leak in rectclipline. fix a pixel-discarding logic statement.
Diffstat (limited to 'fb.c')
-rw-r--r--fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fb.c b/fb.c
index 4a6a7d2..88fe017 100644
--- a/fb.c
+++ b/fb.c
@@ -92,7 +92,7 @@ rasterconvF2C(Raster *dst, Raster *src)
/* first run: get the domain */
f = (float*)src->data;
len = Dx(dst->r)*Dy(dst->r);
- for(min = 0, max = 0; len--; f++){
+ for(min = max = 0; len--; f++){
if(isInf(*f, -1)) /* -∞ is the DNotacolor of the z-buffer */
continue;
min = min(*f, min);