Dash:
[t2.git] / package / boot / grub / no-menu-flicker.patch
blobe2dfa175370f8ee2428acb9fd62d04e6102057f1
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../grub/no-menu-flicker.patch
5 # Copyright (C) 2011 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- grub-0.97/stage2/stage2.c.vanilla 2011-01-13 18:01:24.012337848 +0000
18 +++ grub-0.97/stage2/stage2.c 2011-01-13 18:01:24.012337848 +0000
19 @@ -544,5 +544,12 @@
22 + /* If we count-down a timeout, poll for key, to avoid excessive redraw */
23 + if (grub_timeout >= 0) {
24 + /* wait for key or timeout change */
25 + while (checkkey () < 0 && (time1 = getrtsecs()) == time2 && time1 != 0xFF)
26 + ;
27 + /* fall thru on keypress or clock tick */
28 + }
30 /* Check for a keypress, however if TIMEOUT has been expired
31 (GRUB_TIMEOUT == -1) relax in GETKEY even if no key has been