grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* [3/4] [PATCH] start angle (option of circular_progress) is measured in unusual quantities
@ 2013-03-13 10:52 Vladimir Testov
  2013-03-15 16:52 ` Andrey Borzenkov
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Vladimir Testov @ 2013-03-13 10:52 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 451 bytes --]

In current state, start angle is measured in "parrots", where 1 "parrot" = 1 / 
256 of full circle.

With simple patch we can set start angle in degrees (which makes no difference 
for the program, but makes configuration to be more user-friendly)


theme.txt:

before:
    start_angle = -64
after:
    start_angle = -90

nothing else is affected

-- 
With best regards,
_______________________________
Vladimir Testov, ROSA Laboratory.
www.rosalab.ru

[-- Attachment #2: grub-2.00-parrots-to-degrees.patch --]
[-- Type: text/x-patch, Size: 575 bytes --]

diff -Naur grub-new2/grub-core/gfxmenu/gui_circular_progress.c grub-new3/grub-core/gfxmenu/gui_circular_progress.c
--- grub-new2/grub-core/gfxmenu/gui_circular_progress.c	2013-03-11 12:52:06.000000000 +0400
+++ grub-new3/grub-core/gfxmenu/gui_circular_progress.c	2013-03-11 16:01:08.585385148 +0400
@@ -233,7 +233,7 @@
     }
   else if (grub_strcmp (name, "start_angle") == 0)
     {
-      self->start_angle = grub_strtol (value, 0, 10);
+      self->start_angle = grub_strtol (value, 0, 10) * 64 / 90;
     }
   else if (grub_strcmp (name, "ticks_disappear") == 0)
     {

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [3/4] [PATCH] start angle (option of circular_progress) is measured in unusual quantities
@ 2013-04-12  7:27 Vladimir Testov
  2013-04-19 14:16 ` Andrey Borzenkov
  0 siblings, 1 reply; 12+ messages in thread
From: Vladimir Testov @ 2013-04-12  7:27 UTC (permalink / raw)
  To: grub-devel

>I think "XXX deg" is enough. It avoids confusion with single/plural
>forms and we just need something to distinguish from plain number.

Maybe we should use all three keywords - "deg", "degree", "degrees" ?

>Please add also documentation for it.

Ok. Please tell me where and how should I do it. :)

-- 
With best regards,
_______________________________
Vladimir Testov, ROSA Laboratory.
www.rosalab.ru


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-04-23 10:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-13 10:52 [3/4] [PATCH] start angle (option of circular_progress) is measured in unusual quantities Vladimir Testov
2013-03-15 16:52 ` Andrey Borzenkov
2013-03-15 17:56   ` Lennart Sorensen
2013-03-19  7:01     ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-03-19  7:00   ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-03-19  6:57 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-04-11 15:48 ` Vladimir Testov
2013-04-11 15:56   ` Andrey Borzenkov
2013-04-11 16:00   ` Vladimir Testov
  -- strict thread matches above, loose matches on Subject: below --
2013-04-12  7:27 Vladimir Testov
2013-04-19 14:16 ` Andrey Borzenkov
2013-04-23 10:22   ` Vladimir Testov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).