Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libmenu * Fixed off by one bug in scale menu
details: https://anonhg.NetBSD.org/src/rev/124e51b22e0e
branches: trunk
changeset: 485776:124e51b22e0e
user: blymn <blymn%NetBSD.org@localhost>
date: Fri May 05 11:28:56 2000 +0000
description:
* Fixed off by one bug in scale menu
* Fixed bug in post_menu which created the subwin too small for the menu.
diffstat:
lib/libmenu/menu.c | 4 ++--
lib/libmenu/post.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r 592e78c86b12 -r 124e51b22e0e lib/libmenu/menu.c
--- a/lib/libmenu/menu.c Fri May 05 11:15:45 2000 +0000
+++ b/lib/libmenu/menu.c Fri May 05 11:28:56 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: menu.c,v 1.6 2000/04/20 12:17:57 blymn Exp $ */
+/* $NetBSD: menu.c,v 1.7 2000/05/05 11:28:56 blymn Exp $ */
/*-
* Copyright (c) 1998-1999 Brett Lymn (blymn%baea.com.au@localhost, brett_lymn%yahoo.com.au@localhost)
@@ -458,7 +458,7 @@
/*
* allow for spacing between columns...
*/
- *cols += menu->cols - 1;
+ *cols += menu->cols;
return E_OK;
}
diff -r 592e78c86b12 -r 124e51b22e0e lib/libmenu/post.c
--- a/lib/libmenu/post.c Fri May 05 11:15:45 2000 +0000
+++ b/lib/libmenu/post.c Fri May 05 11:28:56 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: post.c,v 1.5 2000/04/20 12:17:57 blymn Exp $ */
+/* $NetBSD: post.c,v 1.6 2000/05/05 11:28:56 blymn Exp $ */
/*-
* Copyright (c) 1998-1999 Brett Lymn (blymn%baea.com.au@localhost, brett_lymn%yahoo.com.au@localhost)
@@ -71,8 +71,8 @@
if (menu->menu_subwin == NULL) {
menu->we_created = 1;
menu->menu_subwin = derwin(menu->menu_win, menu->rows,
- menu->cols * menu->max_item_width,
- 0, 0);
+ menu->cols * menu->max_item_width
+ + menu->cols, 0, 0);
if (menu->menu_subwin == NULL) {
menu->we_created = 0;
return E_SYSTEM_ERROR;
Home |
Main Index |
Thread Index |
Old Index