Line: Never say "360 degrees" (say "0")

h/t Karl

Closes https://sourceforge.net/p/tuxpaint/bugs/255/
This commit is contained in:
Bill Kendrick 2022-07-03 16:09:48 -07:00
parent 2a43bd3dcd
commit e984f23b5f
2 changed files with 7 additions and 3 deletions

View file

@ -7,7 +7,7 @@ Various contributors (see below, and AUTHORS.txt)
http://www.tuxpaint.org/
2022.July.03 (0.9.29)
2022.July.3 (0.9.29)
* Bug Fixes:
----------
* Opening and immediately dismissing Color Mixer could cause
@ -15,6 +15,10 @@ http://www.tuxpaint.org/
h/t @kentonyanamin on Twitter for reporting.
Closes https://sourceforge.net/p/tuxpaint/bugs/251/
* Line shape could report "360 degrees", which should be "0 degrees".
h/t Karl Ove Hufthammer <karl@huftis.org> for the report
Closes https://sourceforge.net/p/tuxpaint/bugs/255/
* Other Improvements:
-------------------
* Automatic button size option ("buttonsize=auto"), to scale button

View file

@ -22,7 +22,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
June 14, 2002 - June 14, 2022
June 14, 2002 - July 3, 2022
*/
#include "platform.h"
@ -5982,7 +5982,7 @@ static void mainloop(void)
line_start_y + r_canvas.y, new_x + r_canvas.x, new_y + r_canvas.y);
update_screen(0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);
snprintf(angle_tool_text, sizeof(angle_tool_text), gettext(TIP_LINE_MOVING), angle);
snprintf(angle_tool_text, sizeof(angle_tool_text), gettext(TIP_LINE_MOVING), floor(angle));
draw_tux_text(TUX_BORED, angle_tool_text, 1);
}
else if (cur_tool == TOOL_SHAPES)