When drawing an almost horizontal line, the text description sometimes says that the line is 0 degrees, and sometimes 360 degrees. This is confusing, since 360° = 0°. Should be changed to always say 0 degrees.
Tested using the latest Git version.
Manually rounding 359.5 to 0 seems to fix it
diff --git a/src/tuxpaint.c b/src/tuxpaint.c index a7948c7d..91ce84c5 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -5976,6 +5976,9 @@ static void mainloop(void) if (angle < 0.0) angle += 360.0;
Mended in https://sourceforge.net/p/tuxpaint/tuxpaint/ci/e984f23b5f1a84644888d3a15f0b4e0187063080/
Log in to post a comment.
Manually rounding 359.5 to 0 seems to fix it
diff --git a/src/tuxpaint.c b/src/tuxpaint.c
index a7948c7d..91ce84c5 100644
--- a/src/tuxpaint.c
+++ b/src/tuxpaint.c
@@ -5976,6 +5976,9 @@ static void mainloop(void)
if (angle < 0.0)
angle += 360.0;
+
update_screen(line_start_x + r_canvas.x,
line_start_y + r_canvas.y, old_x + r_canvas.x, old_y + r_canvas.y);
update_screen(line_start_x + r_canvas.x,
Mended in https://sourceforge.net/p/tuxpaint/tuxpaint/ci/e984f23b5f1a84644888d3a15f0b4e0187063080/