# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/grub/no-menu-flicker.patch # Copyright (C) 2011 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- --- grub-0.97/stage2/stage2.c.vanilla 2011-01-13 18:01:24.012337848 +0000 +++ grub-0.97/stage2/stage2.c 2011-01-13 18:01:24.012337848 +0000 @@ -544,5 +544,12 @@ } + /* If we count-down a timeout, poll for key, to avoid excessive redraw */ + if (grub_timeout >= 0) { + /* wait for key or timeout change */ + while (checkkey () < 0 && (time1 = getrtsecs()) == time2 && time1 != 0xFF) + ; + /* fall thru on keypress or clock tick */ + } /* Check for a keypress, however if TIMEOUT has been expired (GRUB_TIMEOUT == -1) relax in GETKEY even if no key has been