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; }