Skip to contentSkip to conversation

start angle (option of circular_progress)

PATCH Vladimir Testov 2 participants 2 messages Mar 20, 2013 – Apr 3, 2013

lore
Share & tools
lore
#0 lore raw

new option: start_angle_degrees

maybe like that? :)

Signature · 4 lines
With best regards,
_______________________________
Vladimir Testov, ROSA Laboratory.
www.rosalab.ru
grub-core/gfxmenu/gui_circular_progress.c +4 -0
diff -Naur grub-2.00/grub-core/gfxmenu/gui_circular_progress.c grub-new2/grub-core/gfxmenu/gui_circular_progress.c
@@ -235,6 +235,10 @@
     {
       self->start_angle = grub_strtol (value, 0, 10);
     }
+  else if (grub_strcmp (name, "start_angle_degrees") == 0)
+    {
+      self->start_angle = grub_strtol (value, 0, 10) * 64 / 90;
+    }
   else if (grub_strcmp (name, "ticks_disappear") == 0)
     {
       self->ticks_disappear = grub_strcmp (value, "false") != 0;
#1 lore raw
Quoted 4 lines · Vladimir Testov

new option: start_angle_degrees

maybe like that? :)

Using a different option for the same thing just expressed in different units isn't good or natural. It's more natural to use unit modifiers like start_angle = "90°" or start_angle = "90 deg"
Compare:
buy one littre of milk
rather than
buy littre one of milk.

Quoted 7 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel