Received: from list by lists.gnu.org with archive (Exim 4.71) id 1UFjID-000122-QS for mharc-grub-devel@gnu.org; Wed, 13 Mar 2013 06:52:21 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFjIA-0000wm-4n for grub-devel@gnu.org; Wed, 13 Mar 2013 06:52:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFjI8-0006c9-8T for grub-devel@gnu.org; Wed, 13 Mar 2013 06:52:18 -0400 Received: from collab.rosalab.ru ([217.199.216.181]:40352) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFjI8-0006bo-17 for grub-devel@gnu.org; Wed, 13 Mar 2013 06:52:16 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by collab.rosalab.ru (Postfix) with ESMTP id 417C629C31F for ; Wed, 13 Mar 2013 14:52:15 +0400 (MSK) X-Virus-Scanned: amavisd-new at rosalab.ru Received: from collab.rosalab.ru ([127.0.0.1]) by localhost (collab.rosalab.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PTCmZ8wW403H for ; Wed, 13 Mar 2013 14:52:14 +0400 (MSK) Received: from icedphoenix.localnet (unknown [10.168.1.56]) by collab.rosalab.ru (Postfix) with ESMTPSA id A859C29C1B8 for ; Wed, 13 Mar 2013 14:52:14 +0400 (MSK) From: Vladimir Testov To: grub-devel@gnu.org Subject: [3/4] [PATCH] start angle (option of circular_progress) is measured in unusual quantities Date: Wed, 13 Mar 2013 14:52:13 +0400 Message-ID: <1777262.HjMq9z6GjJ@icedphoenix> User-Agent: KMail/4.9.4 (Linux/3.5.0-23-generic; KDE/4.9.4; x86_64; ; ) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart2077142.58fS9MCOr5" Content-Transfer-Encoding: 7Bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 217.199.216.181 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Mar 2013 10:52:20 -0000 This is a multi-part message in MIME format. --nextPart2077142.58fS9MCOr5 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 --nextPart2077142.58fS9MCOr5 Content-Disposition: attachment; filename="grub-2.00-parrots-to-degrees.patch" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="UTF-8"; name="grub-2.00-parrots-to-degrees.patch" 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) { --nextPart2077142.58fS9MCOr5--