diff options
author | rodri <rgl@antares-labs.eu> | 2024-10-19 11:42:51 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-10-19 11:42:51 +0000 |
commit | 12efa1d9e0ff3a32b018ee83d6ebee08c77972a9 (patch) | |
tree | 25cef8ab1693ee3224c121ff7cac86d55907566f /render.c | |
parent | a09cfff78a96a10169a30324b75554827945fed4 (diff) | |
download | libgraphics-master.tar.gz libgraphics-master.tar.bz2 libgraphics-master.zip |
Diffstat (limited to 'render.c')
-rw-r--r-- | render.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -179,7 +179,7 @@ rasterize(Rastertask *task) double dplen, perc; float z, pcz; uint ropts; - int steep = 0, Δe, e, Δy; + int steep, Δe, e, Δy; params = task->params; prim = &task->p; @@ -233,6 +233,7 @@ rasterize(Rastertask *task) if(rectclipline(task->wr, &p0, &p1, &prim->v[0], &prim->v[1]) < 0) break; + steep = 0; /* transpose the points */ if(abs(p0.x-p1.x) < abs(p0.y-p1.y)){ steep = 1; |