]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
authorVladimir Serbinenko <phcoder@gmail.com>
Fri, 8 Nov 2013 18:13:15 +0000 (19:13 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Fri, 8 Nov 2013 18:13:15 +0000 (19:13 +0100)
Use to get rounded angle rather than truncated.

ChangeLog
grub-core/gfxmenu/gui_circular_progress.c

index ae852e1565cca8b4bba630530801f9bec2b9d102..9447249f7c76d36d6c319814b1fb12048d341426 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
index 249019ef06470efedfd68f2e3031edb5f8fc6fc3..04f68b8d327b16093afe8431669f035104812460 100644 (file)
@@ -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;
 }