* grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
Use to get rounded angle rather than truncated.
This commit is contained in:
parent
9f8acdaa5d
commit
5620eb5332
2 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,11 @@
|
|||
2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* 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 <phcoder@gmail.com>
|
||||
|
||||
* grub-core/term/serial.c: Add option for enabling/disabling
|
||||
RTS/CTS flow control.
|
||||
|
||||
2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue