[asterisk-commits] branch group/autoconf_and_menuselect r16974 - /team/group/autoconf_and_menuse...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Apr 2 13:05:20 MST 2006


Author: russell
Date: Sun Apr  2 15:05:19 2006
New Revision: 16974

URL: http://svn.digium.com/view/asterisk?rev=16974&view=rev
Log:
when drawing a menu, don't redraw everything unless we have to scroll the menu
to show new options

Modified:
    team/group/autoconf_and_menuselect/build_tools/menuselect.c

Modified: team/group/autoconf_and_menuselect/build_tools/menuselect.c
URL: http://svn.digium.com/view/asterisk/team/group/autoconf_and_menuselect/build_tools/menuselect.c?rev=16974&r1=16973&r2=16974&view=diff
==============================================================================
--- team/group/autoconf_and_menuselect/build_tools/menuselect.c (original)
+++ team/group/autoconf_and_menuselect/build_tools/menuselect.c Sun Apr  2 15:05:19 2006
@@ -638,7 +638,14 @@
 	int j = 0;
 	struct member *mem;
 	char buf[64];
-	
+
+	/* Don't redraw the whole thing if all we need to do is move the cursor */
+	if (curopt != start && curopt != end - 1) {
+		wmove(menu, curopt - start, max_x / 2 - 9);
+		wrefresh(menu);
+		return;
+	}
+
 	wclear(menu);
 
 	AST_LIST_TRAVERSE(&cat->members, mem, list) {



More information about the asterisk-commits mailing list