svn commit: r241365 - head/sys/boot/forth
Devin Teske
dteske at FreeBSD.org
Tue Oct 9 06:32:28 UTC 2012
Author: dteske
Date: Tue Oct 9 03:11:15 2012
New Revision: 241365
URL: http://svn.freebsd.org/changeset/base/241365
Log:
Fix an oversight that cyclic menu items actually are zero-based and can
accommodate 10 different states.
Reviewed by: eadler, adrian (co-mentor)
Approved by: adrian (co-mentor)
Modified:
head/sys/boot/forth/menu.4th
Modified: head/sys/boot/forth/menu.4th
==============================================================================
--- head/sys/boot/forth/menu.4th Tue Oct 9 02:52:56 2012 (r241364)
+++ head/sys/boot/forth/menu.4th Tue Oct 9 03:11:15 2012 (r241365)
@@ -935,23 +935,23 @@ create init_text8 255 allot
s" menu_caption[x][y]" \ cycle_menuitem caption
-rot 2dup 13 + c! rot \ replace 'x'
- 49 -rot
+ 48 -rot
begin
16 2over rot + c! \ replace 'y'
2dup unsetenv
- rot 1+ dup 56 > 2swap rot
+ rot 1+ dup 57 > 2swap rot
until
2drop drop
s" ansi_caption[x][y]" \ cycle_menuitem ANSI caption
-rot 2dup 13 + c! rot \ replace 'x'
- 49 -rot
+ 48 -rot
begin
16 2over rot + c! \ replace 'y'
2dup unsetenv
- rot 1+ dup 56 > 2swap rot
+ rot 1+ dup 57 > 2swap rot
until
2drop drop
More information about the svn-src-all
mailing list