From: johnsonm Date: Tue, 19 Aug 2003 20:12:22 +0000 (+0000) Subject: incorporated listbox cursor location patch (#69903) X-Git-Tag: r0-51-4~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4f5c676234fe9adbc82cc2baaa37fb211543ca5;p=thirdparty%2Fnewt.git incorporated listbox cursor location patch (#69903) --- diff --git a/listbox.c b/listbox.c index a05f6b3..a895737 100644 --- a/listbox.c +++ b/listbox.c @@ -530,7 +530,8 @@ static void listboxDraw(newtComponent co) SLsmg_write_nstring(item->text, li->curWidth); } - newtGotorc(co->top + (li->currItem - li->startShowItem) + 1, co->left + 1); + newtGotorc(co->top + (li->currItem - li->startShowItem) + li->bdyAdjust, + co->left + li->bdxAdjust); } static struct eventResult listboxEvent(newtComponent co, struct event ev) { diff --git a/newt.spec b/newt.spec index aca314a..cc3e356 100644 --- a/newt.spec +++ b/newt.spec @@ -2,7 +2,7 @@ Summary: A development library for text mode user interfaces. Name: newt -%define version 0.51.4 +%define version 0.51.5 Version: %{version} Release: 1 License: LGPL @@ -83,6 +83,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libnewt.so %changelog +* Tue Aug 19 2003 Michael K. Johnson +- incorporated listbox cursor location patch (#69903) + * Wed Feb 5 2003 Matt Wilson 0.51.4-1 - fixed help line drawing in UTF-8 (#81718) - calculate the width of text in entries using wstrlen