From 5620eb53323c3947a2895c2fb4b549aed7108960 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Fri, 8 Nov 2013 19:13:15 +0100 Subject: [PATCH] * grub-core/gfxmenu/gui_circular_progress.c (parse_angle): Use to get rounded angle rather than truncated. --- ChangeLog | 7 ++++++- grub-core/gfxmenu/gui_circular_progress.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) 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; }