From: Vladimir Serbinenko Date: Fri, 8 Nov 2013 18:13:15 +0000 (+0100) Subject: * grub-core/gfxmenu/gui_circular_progress.c (parse_angle): X-Git-Tag: grub-2.02-beta1~425 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5620eb53323c3947a2895c2fb4b549aed7108960;p=thirdparty%2Fgrub.git * grub-core/gfxmenu/gui_circular_progress.c (parse_angle): Use to get rounded angle rather than truncated. --- diff --git a/ChangeLog b/ChangeLog index ae852e156..9447249f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ 2013-11-08 Vladimir Serbinenko - * b/grub-core/term/serial.c: Add option for enabling/disabling + * grub-core/gfxmenu/gui_circular_progress.c (parse_angle): + Use to get rounded angle rather than truncated. + +2013-11-08 Vladimir Serbinenko + + * grub-core/term/serial.c: Add option for enabling/disabling RTS/CTS flow control. 2013-11-08 Vladimir Serbinenko diff --git a/grub-core/gfxmenu/gui_circular_progress.c b/grub-core/gfxmenu/gui_circular_progress.c index 249019ef0..04f68b8d3 100644 --- a/grub-core/gfxmenu/gui_circular_progress.c +++ b/grub-core/gfxmenu/gui_circular_progress.c @@ -240,7 +240,7 @@ parse_angle (const char *value) /* Unicode symbol of degrees (a circle, U+b0). Put here in UTF-8 to avoid potential problem with text file reesncoding */ || grub_strcmp (ptr, "\xc2\xb0") == 0) - angle = (angle * 64 + 45) / 90; + angle = grub_divide_round (angle * 64, 90); return angle; }