Skip to content

Commit 8ddebea

Browse files
authored
PR #10522 from YoniChechi: bugfix - next_pixel_in_line
2 parents bf48dfd + 60d6b13 commit 8ddebea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/rs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3720,7 +3720,7 @@ void next_pixel_in_line(float curr[2], const float start[2], const float end[2])
37203720
else
37213721
{
37223722
curr[1] = end[1] > curr[1] ? curr[1] + 1 : curr[1] - 1;
3723-
curr[0] = end[0] - ((end[1] + curr[1]) / line_slope);
3723+
curr[0] = end[0] - ((end[1] - curr[1]) / line_slope);
37243724
}
37253725
}
37263726

0 commit comments

Comments
 (0)